Govt Exams
Both a and b are integers, so integer division is performed: 5/2 = 2 (remainder discarded).
Age is an integer value. Using 'int' is appropriate and memory-efficient. Floating-point types are unnecessary for this discrete value.
5/2 performs integer division resulting in 2, which is then stored in float f. printf("%f") prints 2.000000 (default 6 decimal places).
C99 standard guarantees 'long long' to be at least 64 bits (8 bytes), but some systems may allocate more.
The 'static' keyword gives a variable static storage duration, preserving its value between function calls.
Signed char ranges from -128 to 127, while unsigned char ranges from 0 to 255. Both use 1 byte but interpret the bits differently.
When -10 is assigned to an unsigned int format (%u), it gets interpreted as a large positive number due to two's complement representation on a 32-bit system.
The 'char' data type occupies 1 byte (8 bits) of memory on virtually all modern C systems, as per the C standard.
Register is a hint only; compiler may ignore it. You cannot use & operator on register variables.
In C99+, auto is rarely used since local variables are automatic by default, but it remains valid syntax.