Exam-style question
Try this first
What is the purpose of a char data type?.
- A.To store whole numbers
- B.To store decimal numbers
- C.To store single characters
- D.To store sequences of characters
Answer and explanation
Concise answer
To store single characters
Why this is correct
Char is specifically designed to hold a single character, such as 'A'.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
