Examveda

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

A. 4

B. 2

C. 8

D. 16

Answer: Option A

Solution (By Examveda Team)

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.

This Question Belongs to C Program >> Arrays And Strings

Join The Discussion

Comments (1)

  1. Devarakonada Subrahmanyam
    Devarakonada Subrahmanyam:
    2 months ago

    Unable to understand

Related Questions on Arrays and Strings