C Programming - MCQ Practice Questions
Practice free C Programming multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.
978 questions | 100% Free
What is the size of a 'float' data type in C on most 32-bit systems?
What is the range of 'signed char' in C?
Which keyword is used to make a variable retain its value between function calls?
What is the output of the following code? int x = 10; int *p = &x; printf("%d", *p + 5);
Which of the following declarations allocates memory for a variable?
What is the difference between 'const int *p' and 'int * const p'?
What will be the output of: printf("%ld", sizeof(long double));
Which storage class has global scope and external linkage by default?
What is printed by: int x = 5; printf("%d %d", x++, ++x);?
Which of the following correctly declares a constant pointer to a constant integer?
What happens if you assign a double value to an int variable without casting?
What is the purpose of the 'volatile' keyword?
Which variable declaration uses automatic storage duration?
What is the result of: printf("%d", (int)(3.9) + 0.5);?
What is the behavior of 'auto' keyword in modern C (C99 onwards)?
Which of the following statements about 'register' keyword is TRUE?
What is the size of the 'char' data type in C on most modern systems?
What will be the output of: int x = 10; printf("%u", -x);
What is the difference between 'signed' and 'unsigned' char?
Which keyword is used to declare a variable that maintains its value between function calls?