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.61Medium

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

Q.62Medium

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

Q.63Hard

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

Q.64Hard

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

Q.65Easy

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

Q.66Medium

What is the purpose of the 'volatile' keyword?

Q.67Medium

Which variable declaration uses automatic storage duration?

Q.68Medium

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

Q.69Medium

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

Q.70Hard

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

Q.71Easy

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

Q.72Medium

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

Q.73Easy

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

Q.74Medium

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

Q.75Medium

What is the size of 'long long' data type in C99 standard?

Q.76Medium

What will be printed: float f = ; printf("%f", f);

Q.77Easy

Which data type would be most appropriate to store a person's age in a program?

Q.78Easy

What is the output of: int a = 5, b = 2; printf("%d", a / b);

Q.79Medium

What happens when you declare a variable without initializing it in C?

Q.80Medium

Which storage class specifier limits a variable's scope to the current file?