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 

11. Which of the following is not a data types

  • Float
  • int
  • real
  • imaginery

12. Guess the output

int main() { int a = 5; int b = 10; { int a = 2; a++; b++; } printf("%d %d", a, b); return 0; }
  • 6,11
  • 11 6
  • 6 10
  • 5 11

13. enum types are processed by

  • Assembler
  • Compiler
  • Linker
  • Pre-processor

14. Tick the statement which is not supported by C.

  • Char str
  • char *str;
  • String str;
  • float I;

15. Find out the error

#include #include int main() { void display(char *s, int num1, int num2, ...); display("Hello", 4, 2, 12.5, 13.5, 14.5, 44.0); return 0; } void display(char *s, int num1, int num2, ...) { double c; char s; va_list ptr; va_start(ptr, s); c = va_arg(ptr, double); printf("%f", c); }
  • Error: in va_start(ptr, s);
  • Error: too many parameters
  • Error: invalid arguments in function display()
  • No error