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.21Easy

What is the size of a pointer in a 64-bit system?

Q.22Easy

How does free() handle a NULL pointer?

Q.23Easy

What is the result of: int x = 5; int *p = &x; int *q = p; if p == q?

Q.24Easy

What happens with: int arr[10]; int *p = arr; *p = 5; printf("%d", arr[0]);?

Q.25Easy

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

Q.26Easy

Consider the declaration: const int *p; and int * const q;
Which statement is TRUE?

Q.27Easy

What is the primary issue with this code?
int *p;
*p = 10;