iGET

C Programming - MCQ Practice Questions

Practice free C Programming multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.

978 questions | 100% Free

Q.81Medium

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

Q.82Medium

Which of these correctly represents a floating-point literal with exponent notation?

Q.83Medium

What is the range of values for a signed short int?

Q.84Hard

What is the primary purpose of the 'restrict' keyword introduced in C99?

Q.85Hard

What happens in this code: int arr[5]; int *p = &arr[0]; printf("%d", sizeof(p));

Q.86Medium

Which of the following is a valid declaration of a constant array?

Q.87Easy

In C programming, which of the following is NOT a fundamental data type?

Q.88Easy

What is the size of a 'long long int' variable in C on a 64-bit system?

Q.89Easy

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

Q.90Easy

Which of the following variable declarations will occupy the LEAST memory?

Q.91Medium

In C, what is the difference between 'int' and 'unsigned int' in terms of range on a 32-bit system?

Q.92Hard

What will be the result of the following expression: float x = 0.1 + 0.2; if(x == 0.3) printf("Equal"); else printf("Not Equal");

Q.93Medium

Which storage class has both 'static' and 'auto' properties in certain contexts?

Q.94Medium

What is the output of: int arr[3] = {1, 2, 3}; int *p = arr; printf("%d %d", *p, *(p+2));

Q.95Medium

Consider a scenario where you need to store a variable that can hold values up to 10 billion. Which data type is most suitable?

Q.96Hard

What happens when a volatile variable is declared in a multi-threaded C program?

Q.97Easy

In C programming, when you declare a variable as 'const int x = 5;', what happens if you try to modify it within the program?