Q
In C and C++, is plain char signed or unsigned?
-
A
Implementation-defined
-
B
Always signed
-
C
Always unsigned
-
D
Signed in C, unsigned in C++
Correct Answer:
A. Implementation-defined
Explanation:
char, signed char, and unsigned char are three distinct types. Whether plain char is signed depends on the platform.