Govt Exams
On most 32-bit systems, float occupies 4 bytes (32 bits) of memory according to IEEE 754 standard.
Initialization assigns a value when the variable is declared (int x = 5;). Assignment changes the value later (x = 10;).
The storage classes in C are: auto, register, static, and extern. 'static' is one of them.
Variables declared inside a block (including function blocks) have block scope and are accessible only within that block.
unsigned char is 1 byte (8 bits) without sign bit, giving range 0 to 2^8-1 = 0 to 255.
Integer division in C truncates the decimal part. 5/2 = 2 (not 2.5). The %d format specifier expects an integer.
In C, floating-point constants like 3.14 are treated as double by default. To specify float, you need to use 3.14f suffix.
On 32-bit systems, int is typically 4 bytes (32 bits). However, the exact size is implementation-defined per C standard.
Variable names cannot start with a digit in C. Valid names must begin with a letter (a-z, A-Z) or underscore (_).
In standard C on 64-bit systems, double occupies 8 bytes and can store values with approximately 15-17 significant digits.