Govt Exams
(int)(3.9) = 3, then 3 + 0.5 = 3.5, but %d prints as int 3 (truncated).
Local variables declared inside functions have automatic storage duration and are destroyed on function exit.
Volatile prevents compiler optimizations by signaling the variable may change outside program control (hardware/signals).
Implicit conversion truncates decimal part. int x = 3.7; results in x=3 with no error.
Both 'const int * const p' and 'int const * const p' are equivalent and declare constant pointer to constant integer.
Modifying variable x twice without intervening sequence point causes undefined behavior.
Global variables with extern keyword have global scope and external linkage across translation units.
Size of long double varies: typically 12 or 16 bytes on different systems and compilers.
'const int *p' - pointer can change but value cannot. 'int * const p' - value can change but pointer cannot.
Both 'int x;' and 'static int x;' allocate memory. Extern only declares without allocation.