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 does the 'const' keyword do when applied to a pointer?
Which of the following is a correct way to read a string from user input avoiding buffer overflow?
What is the difference between 'break' and 'continue' statements in C?
In C, what is the correct way to pass a variable by reference using pointers?
What will be the result of the bitwise operation: 5 & 3 in C?
Consider a function declared as 'static int func()'. What is the scope of this function?
What is the output of: printf("%d", (int)3.7);?
Which of the following best describes the 'register' storage class in modern C compilers?
What is the size of the 'int' data type in a 32-bit system according to C standard?
Which of the following is NOT a valid C identifier?
What will be the output of: int x = 5; printf("%d", x++ + ++x);
In C, what is the size of the 'char' data type?
What does the 'extern' keyword indicate in C?
What is the output of: char c = 65; printf("%c", c);
Which header file is required to use the malloc() function?
What is the result of: int x = 10; int y = x++ + x++;
In C, which of the following correctly declares a pointer to an integer?
What is the correct syntax to define a macro with arguments in C?
What will be printed by: printf("%d", sizeof(float));
Which of the following is a correct way to initialize a character array with a string?