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

What does the 'const' keyword do when applied to a pointer?

Q.42Medium

Which of the following is a correct way to read a string from user input avoiding buffer overflow?

Q.43Medium

What is the difference between 'break' and 'continue' statements in C?

Q.44Medium

In C, what is the correct way to pass a variable by reference using pointers?

Q.45Medium

What will be the result of the bitwise operation: 5 & 3 in C?

Q.46Hard

Consider a function declared as 'static int func()'. What is the scope of this function?

Q.47Hard

What is the output of: printf("%d", (int)3.7);?

Q.48Hard

Which of the following best describes the 'register' storage class in modern C compilers?

Q.49Easy

What is the size of the 'int' data type in a 32-bit system according to C standard?

Q.50Easy

Which of the following is NOT a valid C identifier?

Q.51Hard

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

Q.52Easy

In C, what is the size of the 'char' data type?

Q.53Medium

What does the 'extern' keyword indicate in C?

Q.54Easy

What is the output of: char c = 65; printf("%c", c);

Q.55Easy

Which header file is required to use the malloc() function?

Q.56Hard

What is the result of: int x = 10; int y = x++ + x++;

Q.57Easy

In C, which of the following correctly declares a pointer to an integer?

Q.58Medium

What is the correct syntax to define a macro with arguments in C?

Q.59Medium

What will be printed by: printf("%d", sizeof(float));

Q.60Medium

Which of the following is a correct way to initialize a character array with a string?