Important MCQ

Which of these is a floating-point data type?

Q.Which of these is a floating-point data type?

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