• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

C Programming

C Programming
What will be the output of given program?#includevoid main(){int a=3;for(;a;printf("%d ", a--);}

3 2 1
infinity loop
no output
3 2 1 0

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ static int var = 5; printf("%d ", var--); if(var) main();}

Infinite Loop
None of These
5 4 3 2 1
5 5 5 5 5

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What does the following declaration mean?int (*ptr)[10];

ptr is array of pointers to 10 integers
ptr is an array of 10 integers
ptr is an pointer to array
ptr is a pointer to an array of 10 integers

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Find the output of the following program.void main(){ int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp); }

0x1234ABCD, 0x1234ABCD, 10
0x1234ABCD, 10, 10
0x1234ABCD, 0x1234ABCD, 0x1234ABCD
Syntax error
Runtime error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); }

None of these.
Hello
H
Some address will be printed

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Find the output of the following program.void main(){ int i=065, j=65; printf("%d %d", i, j);}

65 65
53 65
Syntax error
065 65
053 65

ANSWER DOWNLOAD EXAMIANS APP
MORE MCQ ON C Programming

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑