Q1
Why does printf("%d", 5 / 2); print 2 instead of 2.5 in C?
Dividing two whole int numbers in C performs Integer Division, chopping off .5 completely! Making at least one number a decimal (5.0 / 2.0) with %f produces 2.500000.
Q2
Why can scanf("%d", age); (forgetting &) crash your C program immediately?
scanf needs the memory address (&age, 'where the mailbox lives') to store typed input inside age. Passing age without & tells scanf to write into a random broken memory address!
Q3
Why does forgetting break; inside a C switch (choice) statement run ALL the matching cases below it ('Fall-Through')?
In C, once a case matches, execution keeps falling straight down into every remaining case and default until it hits a break; or closing }!
Q4
What happens if an array int marks[5]; tries reading or writing marks[5]?
Valid indexes for size 5 run strictly 0 through 4. Unlike Python, C does NOT stop you cleanly at marks[5]—it silently reads/corrupts neighboring variables in memory!
Q5
Why do C strings (char name[] = "Hi";) secretly require 3 bytes instead of 2?
C ends every string with a hidden null terminator '\0' byte so printf and strlen know exactly where the word stops in memory.
Q6
What is the key difference between a `while` loop vs a `do-while` loop in interactive menus?
while checks the rule BEFORE running (so if false initially, it runs 0 times). do-while runs the code block at least once first, then checks the condition—ideal for 'Play again? (y/n)' prompts!
Q7
Why must every C statement end with a ; semicolon AND every executable C program contain int main(void)?
main() is the single entry door where execution begins, and ; tells the C compiler cleanly where one instruction finishes before compiling machine code.
Q8
Why does #include <stdio.h> sit at the very top of C programs?
Standard I/O header stdio.h gives C the recipe definitions for printf and scanf so the compiler knows how to talk to keyboard and screen.
Q9
How does a++ (post-increment) behave differently from ++a (pre-increment) inside b = a++?
With a = 5, b = a++ hands 5 to b FIRST then bumps a to 6; b = ++a bumps a to 6 first then hands 6 to b!
Q10
Why is C still called the 'Mother Language' behind Python, Linux, and microcontrollers?
Because C maps cleanly to direct hardware speed and memory—Python's main interpreter (CPython), OS kernels, and robotics chips are written directly in C!