ExamVeda
Login
Home
This question belongs to C Program Arrays And Strings
Arrays and Strings
?

What is the result of the expression sizeof(int) in C?

Answer & Solution
Correct Answer: Option A
In C, sizeof(int) returns the number of bytes used to store an integer data type.

On most modern systems (especially 32-bit and 64-bit architectures), an int typically occupies 4 bytes.

Therefore, the expression sizeof(int) generally evaluates to 4.

However, it is important to note that the exact size can vary depending on the compiler and system architecture, but 4 bytes is the most commonly expected answer in standard environments.
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Devarakonada Subrahmanyam
Devarakonada Subrahmanyam 5 months ago
Unable to understand