Q. What is the range of a signed char variable in C?

  • (A) 0 to 255
  • (B) -128 to 127
  • (C) 0 to 127
  • (D) -128 to 255
πŸ’¬ Discuss
βœ… 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 βœ…

Explanation by: Mr. Dubey

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 βœ…

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
322
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Akash Lawaniya
Publisher
πŸ“ˆ
93%
Success Rate