Google News
logo
CPP - Quiz(MCQ)
What is the size of a character type in C and C++?
A)
4 and 4
B)
4 and 1
C)
1 and 4
D)
1 and 1

Correct Answer :   1 and 1


Explanation : The size of a character type in both C and C++ is 1. You can do printf(“%d”, (int)sizeof(char)); in both C and C++ to check this.

Advertisement