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
In C, which of the following correctly declares a pointer to an integer?
What will be the output of: printf("%d", );
What will be the output of: int x = 10; printf("%d", x++);
How many bytes does a 'long long' integer occupy in C (standard 32-bit system)?
Which escape sequence represents a horizontal tab in C?
What is the correct way to declare a two-dimensional array of integers with 3 rows and 4 columns?
What is the output of the following C program?
#include<stdio.h>
int main() {
char str[] = "GATE";
printf("%d", sizeof(str));
return 0;
}