1.

In C++, what is the sign of character data type by default?(a) Signed(b) Unsigned(c) Implementation dependent(d) Unsigned ImplementationI have been asked this question in an international level competition.I'm obligated to ask this question of Character Types topic in portion Types, Pointers, Arrays & Structures in C++ of C++

Answer»

The correct CHOICE is (c) Implementation dependent

To EXPLAIN: 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.



Discussion

No Comment Found

Related InterviewSolutions