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.161Medium

What is the size of 'long long' data type in C99 standard?

Q.162Medium

What will be printed: float f = ; printf("%f", f);

Q.163Easy

Which data type would be most appropriate to store a person's age in a program?

Q.164Easy

What is the output of: int a = 5, b = 2; printf("%d", a / b);

Q.165Medium

What happens when you declare a variable without initializing it in C?

Q.166Medium

Which storage class specifier limits a variable's scope to the current file?

Q.167Medium

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

Q.168Medium

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

Q.169Medium

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

Q.170Hard

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

Q.171Hard

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

Q.172Medium

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

Q.173Easy

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

Q.174Easy

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

Q.175Easy

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

Q.176Easy

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

Q.177Medium

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

Q.178Hard

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.179Medium

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

Q.180Medium

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