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
What is the output of: int x = 5; int y = ++x + x++;
In C, what is the difference between #include <stdio.h> and #include "stdio.h"?
What will be the output of: printf("%d", );
Which of the following statements about NULL is correct?
What is the scope of a variable declared inside a block with 'static'?
What will be printed by: int arr[3] = {1, 2, 3}; printf("%d", *(arr + 1));
In C99 and later standards, what is the purpose of 'inline' keyword?
What will be the output of: int x = 10; printf("%d", x++);
How many bytes does a 'long long' integer occupy in C (standard 32-bit system)?
Which escape sequence represents a horizontal tab in C?
What is the purpose of the getchar() function in C?
What will be the output of: int a = 5; int b = a < 10 ? 20 : 30; printf("%d", b);
Which of the following is correct about static variables in C?
What is the output of: printf("%d %d", 10 % 3, );
What does the 'volatile' keyword in C indicate?
Which of the following about register variables is TRUE?
What is the correct way to declare a two-dimensional array of integers with 3 rows and 4 columns?
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);
Which of the following about function pointers in C is correct?
What is the output of: float x = ; printf("%f", x);