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 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?
What is the size of 'long long' data type in C99 standard?
What will be printed: float f = ; printf("%f", f);
Which data type would be most appropriate to store a person's age in a program?
What is the output of: int a = 5, b = 2; printf("%d", a / b);
What happens when you declare a variable without initializing it in C?
Which storage class specifier limits a variable's scope to the current file?