C Programming - MCQ Practice Questions
C questions in placement tests and university exams are rarely about syntax alone. Most of what you will find here is output prediction, pointer arithmetic, arrays and strings, structures and unions, storage classes, recursion, and file handling. The explanations walk through memory behaviour step by step, which is usually where the confusion sits rather than in the code itself.
972 questions | 100% Free
Which of the following correctly declares a constant integer variable?
What is the range of unsigned char in C?
What happens when you assign a larger data type value to a smaller one?
In the declaration 'volatile int x;', what does volatile signify?
What is the scope of a variable declared inside a function block?
Which of the following is a storage class in C?
What is the output of: printf("%d", sizeof(int) + sizeof(char))?
What is the difference between 'char' and 'unsigned char' for character representation?
In C, what is the result of: int x = 5.7?
What is the difference between initialization and assignment in C?
What will happen if you declare a variable without initializing it?
Which format specifier is used for printing a long integer?
In the declaration 'int *p, q;', what are the data types?
What is the purpose of the 'restrict' keyword in modern C?
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'?