A static local variable has static storage duration. It is initialized only once and retains its value between calls to the function, while its name remains visible only within its declared scope.
Programming in C MCQ - Constants, Variables and Data Types
A preprocessor directive beginning with #include requests inclusion of the specified header file. The math.h header declares mathematical library functions, such as sqrt and pow.
The declaration float height[100]; defines an array containing 100 elements of type float. The declaration float height, women; declares two separate floating-point variables.
For ordinary int variables, the leftmost bit is commonly used as the sign bit in signed binary representations. The exact representation of signed integers is governed by the C implementation and language version.
In C, negating an unsigned integer uses modular arithmetic. For a 16-bit unsigned int, the possible values range from 0 to 65535. The result of -a is calculated modulo 65536. Given a = 0x6DB7, we calculate 0x10000 - 0x6DB7 = 0x9249. Therefore, the correct answer is option C (0x9249). Option B is incorrect by one, while option D represents the result for a 32-bit unsigned integer.

