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;
}

Q.28Easy

Which of the following is NOT a fundamental data type in C?

Q.29Easy

What is the size of an 'int' variable in a 32-bit system?

Q.30Easy

Which variable declaration is correct in C?

Q.31Easy

Which keyword is used to declare a variable that cannot be modified?

Q.32Easy

Which of the following is a derived data type in C?

Q.33Easy

How many bits are used to store a 'short int' in a standard C environment?

Q.34Easy

What is the range of values for a signed char in C?

Q.35Easy

Which keyword is used to modify a variable so that it cannot be changed?

Q.36Easy

What is the size of the double data type in most 64-bit systems?

Q.37Easy

Which of the following variable names is INVALID in C?

Q.38Easy

What will be the result of sizeof(int) on a typical 32-bit system?

Q.39Easy

What is the default data type of a floating-point constant in C?

Q.40Easy

What is the range of unsigned char in C?