Important MCQ

In char grade = 'A'; the single quotes are used for a

Q.In char grade = 'A'; the single quotes are used for a

A) boolean
B) character
C) integer
D) string
Correct Answer:
Option B
Detailed Explanation:
B) character is correct. Data types define what a variable stores. int stores whole numbers, float/double store decimals, char stores one character, bool stores true/false, and sizeof reports size in bytes.