variable and datatype in c

Опубликовано: 17 Июнь 2026
на канале: R. M. COACHING CLASSES
8
1

Hello Friends

TOPIC: VARIABLE & DATATYPE in C

DATA TYPE
‘C’ support different types of data. Storage representation of these data type is different in memory.
There are four fundamental data type in ‘C’ which are int, float, char, double.
Char is used to store any single character, int is store Integer value, float is used for storing the value floating point number and double is used for storing double precision floating point number, which can use qualifiers with the basic types to get some more types.


There are two types of Qualifier-
1 )Size qualifier- short, long size
2) Sign qualifier- Unsigned, Signed
When the qualifier unsigned is used the number is always positive and when signed is used number may be positive or negative. If the sign qualifier is not mentioned, then by default sign qualifier is assume.
the range of values for signed data types is less than of unsigned type.


VARIABLE
Variable is a name that can be used to store values. Variable can take different values but one at a time. These values can be changed during execution of the program. A data type is associated with each variable. The data type of variable decides what value it can take. The rule for naming variable are same as the Identifiers.


Thanks


Like, Subscribe, Comment & Share