Question 1: Floating-Point Data Type
How do you declare a variable named pi to store the value 3.14159 with high precision?
Question 2: Pre-increment Operator
What is the value of y after the following C code executes?
Question 3: The default case
The default case in a switch statement serves what purpose?
Question 4: Continue Statement
What does the continue statement do inside a loop?
Question 5: Function with Parameters
What will be the output?
Question 6: Array and Loop
What will be printed?
Question 7: NULL Pointer
What does a NULL pointer represent in C?
Question 8: Difference between Structure and Union
What is the key difference between structure and union in C?
Question 9: File Modes
What does mode "a" do in fopen()?
Question 10: strcat() Function
What will be printed?
Question 11: Guess the Output - Type Promotion
What is the output of the following code?
Question 12: Post-decrement Operator
What will be the final value of x after the following C code executes?
Question 13: Simple If Statement
What is the output of the following C code?
Question 14: For Loop Output
What will be printed?
Question 15: Function Call by Value
What will be printed?
Question 16: Array Out of Bounds
What happens if we try to access arr[10] when arr has size 5?
Question 17: Pointer and Array
What will be the output?
Question 18: Size of Structure
What will sizeof return?
Question 19: fgetc() Function
What will be the output if input.txt contains AB?
Question 20: strcmp() Function
What will strcmp("apple", "apple") return?