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 

56. Assume the output

#include int main() { printf("%p", main); getchar(); return 0; }
  • No Output
  • Address of main function
  • Compilation error
  • Runtime Error

57. What is the output?

#include int main() { int i = 0, j = 0; if (i && (j = i + 10)) //do something ; }
  • Output : 10
  • Output : 0
  • Output : 11
  • Error

59. Find out the error

#include struct emp { char name[20]; int age; }; int main() { emp int xx; int a; printf("%d\n", &a); return 0; }
  • Error: in declaration
  • No error
  • Error: printf
  • Error: in emp int xx;

60. Guess the output

#include int main() { int x = 1, y = 0, z = 3; x > y ? printf("%d", z) : return z; }
  • Output : 3
  • Runtime error
  • Compile time error
  • Output : 1