Explanation: The value ‘\012’ means the character with value 12 in octal, which is decimal 10. 7. In C++, what is the sign of character data type by default?
A. Signed
B. Unsigned
C. Implementation dependent
D. None of these
Answer:A
Explanation: The value ‘\012’ means the character with value 12 in octal, which is decimal 10. 7. In C++, what is the sign of character data type by default?
A. Signed B. Unsigned C. Implementation dependent D. None of these
Explanation: The standard does not specify if plain char is signed or unsigned. There are three distinct character types according to the standard: char, signed char and unsigned char.