• 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
If the two strings are identical, then strcmp() function returns

true
1
0
-1
None of these

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Find the output of the following program.void main(){ printf("%d, %d", sizeof(int *), sizeof(int **));}

2, 2
0, 2
2, 4
4, 4
2, 0

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;}

a[1] = 2
a[0] = 3
a[1] = 3
a[0] = 2
Compilation error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Comment on the following?const int *ptr;

Both of the above
We cannot change the value pointed by ptr.
We cannot change the pointer ptr itself.
We can change the pointer as well as the value pointed by it.

ANSWER DOWNLOAD EXAMIANS APP

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

55445
54544
54554
45545

ANSWER DOWNLOAD EXAMIANS APP

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

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

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
↑