iGET

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

Q.141Easy

What is the size of a 'float' data type in C on most 32-bit systems?

Q.142Easy

What is the range of 'signed char' in C?

Q.143Medium

Which keyword is used to make a variable retain its value between function calls?

Q.144Medium

What is the output of the following code? int x = 10; int *p = &x; printf("%d", *p + 5);

Q.145Medium

Which of the following declarations allocates memory for a variable?

Q.146Hard

What is the difference between 'const int *p' and 'int * const p'?

Q.147Medium

What will be the output of: printf("%ld", sizeof(long double));

Q.148Medium

Which storage class has global scope and external linkage by default?

Q.149Hard

What is printed by: int x = 5; printf("%d %d", x++, ++x);?

Q.150Hard

Which of the following correctly declares a constant pointer to a constant integer?

Q.151Easy

What happens if you assign a double value to an int variable without casting?

Q.152Medium

What is the purpose of the 'volatile' keyword?

Q.153Medium

Which variable declaration uses automatic storage duration?

Q.154Medium

What is the result of: printf("%d", (int)(3.9) + 0.5);?

Q.155Medium

What is the behavior of 'auto' keyword in modern C (C99 onwards)?

Q.156Hard

Which of the following statements about 'register' keyword is TRUE?

Q.157Easy

What is the size of the 'char' data type in C on most modern systems?

Q.158Medium

What will be the output of: int x = 10; printf("%u", -x);

Q.159Easy

What is the difference between 'signed' and 'unsigned' char?

Q.160Medium

Which keyword is used to declare a variable that maintains its value between function calls?

C Programming MCQs & Practice Tests – Free | iGET | iGET