Which of these data types stores a single character in C?
-
A
int
-
B
char
Correct answer
-
C
float
-
D
void
12 views
Explanation
char stores a single character like 'A'. int stores integers, float stores decimals, and void means no value. Character constants use single quotes.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ