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
In C, which of the following correctly declares a pointer to an integer?
What will be the output of: printf("%d", );
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 correct way to declare a two-dimensional array of integers with 3 rows and 4 columns?
What is the output of the following C program? #include<stdio.h> int main() { char str[] = "GATE"; printf("%d", sizeof(str)); return 0; }
Which of the following is NOT a fundamental data type in C?
What is the size of an 'int' variable in a 32-bit system?
Which variable declaration is correct in C?
Which keyword is used to declare a variable that cannot be modified?
Which of the following is a derived data type in C?
How many bits are used to store a 'short int' in a standard C environment?
What is the range of values for a signed char in C?
Which keyword is used to modify a variable so that it cannot be changed?
What is the size of the double data type in most 64-bit systems?
Which of the following variable names is INVALID in C?
What will be the result of sizeof(int) on a typical 32-bit system?
What is the default data type of a floating-point constant in C?
What is the range of unsigned char in C?