Q. What is the range of a signed char variable in C?
β
Correct Answer: (B)
-128 to 127
Explanation:
In C, the range of a signed char variable depends on its storage size, which is 1 byte (8 bits).
- The most significant bit (MSB) is used for the sign (0 for positive, 1 for negative).
- The remaining 7 bits store the value.
Correct Answer:
(B) -128 to 127 β