![]() |
VOOZH | about |
The int keyword in C is used to declare integer variables that store whole numbers without decimal values. It is one of the most commonly used data types in C programming.
Age = 25
Explanation:
In the above example:
int variable_name;
We can declare multiple integer variables in a single statement.
10 20 30
The sizeof() operator can be used to determine the memory occupied by an integer variable.
Size of int = 4 bytes
Note: The size of int may vary depending on the compiler and system architecture, although it is typically 4 bytes on modern systems.
A signed integer generally stores values in the following range:
| Type | Typical Size | Range |
|---|---|---|
| int | 4 Bytes | -2,147,483,648 to 2,147,483,647 |