iGET

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

Q.61Medium

What is the size of int data type on a 32-bit system according to C standard?

Q.62Medium

In the declaration 'int arr[10], *ptr;', which statement is correct?

Q.63Medium

Which of the following correctly declares a constant integer variable?

Q.64Medium

What happens when you assign a larger data type value to a smaller one?

Q.65Medium

What is the output of: printf("%d", sizeof(int) + sizeof(char))?

Q.66Medium

What is the difference between 'char' and 'unsigned char' for character representation?

Q.67Medium

In C, what is the result of: int x = 5.7?

Q.68Medium

What will happen if you declare a variable without initializing it?

Q.69Medium

Which format specifier is used for printing a long integer?

Q.70Medium

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

Q.71Medium

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

Q.72Medium

Which of the following declarations allocates memory for a variable?

Q.73Medium

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

Q.74Medium

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

Q.75Medium

What is the purpose of the 'volatile' keyword?

Q.76Medium

Which variable declaration uses automatic storage duration?

Q.77Medium

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

Q.78Medium

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

Q.79Medium

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

Q.80Medium

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