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.61Hard

What is the output of: int x = 5; int y = ++x + x++;

Q.62Medium

In C, what is the difference between #include <stdio.h> and #include "stdio.h"?

Q.63Easy

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

Q.64Medium

Which of the following statements about NULL is correct?

Q.65Hard

What is the scope of a variable declared inside a block with 'static'?

Q.66Medium

What will be printed by: int arr[3] = {1, 2, 3}; printf("%d", *(arr + 1));

Q.67Medium

In C99 and later standards, what is the purpose of 'inline' keyword?

Q.68Easy

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

Q.69Easy

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

Q.70Easy

Which escape sequence represents a horizontal tab in C?

Q.71Medium

What is the purpose of the getchar() function in C?

Q.72Medium

What will be the output of: int a = 5; int b = a < 10 ? 20 : 30; printf("%d", b);

Q.73Medium

Which of the following is correct about static variables in C?

Q.74Medium

What is the output of: printf("%d %d", 10 % 3, );

Q.75Medium

What does the 'volatile' keyword in C indicate?

Q.76Medium

Which of the following about register variables is TRUE?

Q.77Easy

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

Q.78Hard

What will be the output of: int a = 1; int b = 2; a = a + b; b = a - b; a = a - b; printf("%d %d", a, b);

Q.79Hard

Which of the following about function pointers in C is correct?

Q.80Hard

What is the output of: float x = ; printf("%f", x);