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 

26. Predict the output

#include int main() { int i; i = 1, 2, 3; printf("i = %d\n", i); getchar(); return 0; }
  • Output: 1
  • Output: 2
  • Output: 3
  • Output: 123

27. Function used in round off the value

  • roundoff()
  • roundto()
  • ceil()
  • None of the above

28. We can not declare a multuple function with same name?

  • True
  • False

29. Output is

#include int main() { int i = -3; int k = i % 2; printf("%d\n", k); }
  • Output: 3
  • Output: -1
  • Output: 1
  • compiler error

30. Assume the output

#include void main() { int x = 5.3 % 2; printf("Value of x is %d", x); }
  • Compile time error
  • Value of x is 2
  • Value of x is -2
  • Value of x is 3