Loading, please wait...

C Programming Multiple Choice Questions And Answers

Search here for MCQs

Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:

List of Programming Full Forms 

16. Pick up the false statement

  • A variable must be declared and defined at the same time
  • A single variable cannot be defined with two different types in the same scope
  • A variable defined once can be defined again with different scope
  • All of the above

17. Assume the output

#include int main() { int x = 10, *y, **z; y = &x; z = &y; printf("%d %d %d", *y, **z, *(*z)); return 0; }
  • 100xaa54f10
  • Compiler Error
  • 10 10 10
  • Runtime Error

18. Guess the output

void main() { char a = 'a'; int x = (a % 10)++; printf("%d\n", x); }
  • Grabage Value
  • Compiler Error
  • Output: 10
  • Output: 0

19. No of keywords in C

  • 35 Only
  • 36 Only
  • 34 Only
  • 32 Only

20. Can we pass a variable argument list to a function at run-time?

  • Ture.
  • False.