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

In C, which of the following correctly declares a pointer to an integer?

Q.22Easy

What will be the output of: printf("%d", );

Q.23Easy

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

Q.24Easy

How many bytes does a 'long long' integer occupy in C (standard 32-bit system)?

Q.25Easy

Which escape sequence represents a horizontal tab in C?

Q.26Easy

What is the correct way to declare a two-dimensional array of integers with 3 rows and 4 columns?

Q.27Easy

What is the output of the following C program?
#include<stdio.h>
int main() {
char str[] = "GATE";
printf("%d", sizeof(str));
return 0;
}