Important MCQ

Which data type stores whole numbers?

Q.Which data type stores whole numbers?

A) int
B) float
C) string
D) char
Correct Answer:
Option A
Detailed Explanation:
A) int 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.