The CHAR type data can hold at most ________characters. a)256 b)255 c)365
Answers
Answered by
5
Answer:
- The CHAR type data can hold at most 256 characters.
- CHAR type can hold 1 BYT of 8 BITS.
- BYT => byte (1 BYT = 0.001 KILOBYTE).
- Calculating in binary notation its value is like 2^8 =256.
Thats,
⇢ 2^8
⇢ 256
⇢ 2 * 2 * 2 * 2 * 2 * 2 * 2
⇢ 256
We get 256 because,
- 2 = (8 times multiplying with 2) we get 256 and also CHART type can hold most 256 characters.
HENCE, Option (A) - 256 characters is the Required Answer.
Similar questions