Important MCQ

Which data type gives more precision for decimals?

Q.Which data type gives more precision for decimals?

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