Important MCQ

sizeof(int) returns

Q.sizeof(int) returns

A) the address of int
B) nothing
C) the value of int
D) the size of int in bytes
Correct Answer:
Option D
Detailed Explanation:
D) the size of int in bytes 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.