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

Which of the following correctly declares a constant integer variable?

Q.42Easy

What is the range of unsigned char in C?

Q.43Medium

What happens when you assign a larger data type value to a smaller one?

Q.44Hard

In the declaration 'volatile int x;', what does volatile signify?

Q.45Easy

What is the scope of a variable declared inside a function block?

Q.46Easy

Which of the following is a storage class in C?

Q.47Medium

What is the output of: printf("%d", sizeof(int) + sizeof(char))?

Q.48Medium

What is the difference between 'char' and 'unsigned char' for character representation?

Q.49Medium

In C, what is the result of: int x = 5.7?

Q.50Easy

What is the difference between initialization and assignment in C?

Q.51Medium

What will happen if you declare a variable without initializing it?

Q.52Medium

Which format specifier is used for printing a long integer?

Q.53Hard

In the declaration 'int *p, q;', what are the data types?

Q.54Hard

What is the purpose of the 'restrict' keyword in modern C?

Q.55Easy

What is the size of a 'float' data type in C on most 32-bit systems?

Q.56Easy

What is the range of 'signed char' in C?

Q.57Medium

Which keyword is used to make a variable retain its value between function calls?

Q.58Medium

What is the output of the following code? int x = 10; int *p = &x; printf("%d", *p + 5);

Q.59Medium

Which of the following declarations allocates memory for a variable?

Q.60Hard

What is the difference between 'const int *p' and 'int * const p'?

C Programming MCQs & Practice Tests – Free | iGET | iGET