What Is Data Types in C Language ?: Datatype Specific The Size & Type of Values That Can Be Stored in An Variable
What Is Data Types in C Language ?: Datatype Specific The Size & Type of Values That Can Be Stored in An Variable
(1) int - As its name suggests, an int variable is used to store a whole number. It
stores zero, positive and negative values without decimal. Its size (bytes) is at
least 2 bytes and it’s format specifier %d, %i .
(3) float - It is used to store decimal numbers (numbers with floating point value)
with single precision . Its size is at least 4 bytes and it’s format specifier %f .
(2) char - It is the most basic data type in C. It stores a single character and requires
one byte of memory in almost all compilers. and it’s format specifier %c .
B.Sc. ( Maths )
Topic - Data Types in C Language
Presentation By - Govindram
Class – B.Sc. Year ( Maths)
Guided BY
Mr. Deepesh Kumar
(Asst. Professor Physicis)
Classification Data Types in c
void Unum
Primitive Data Type
(4) double - It is used to store decimal numbers (numbers with floating point value)
with double precision. Its size is at least 8 bytes and it’s format specifier %lf .
(5) void - The void data type in C is used to specify that no value is present. It does
not provide a result value to its caller. It has no values and no operations. It is
used to represent nothing.