What Is Data Types in C Language
What Is Data Types in C Language
COLLEGE
BHAISMA, DIST- KORBA (C.G.)
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)
What is Data Types in C Language ?
• Datatype specific the size & type Of values that can be
stored in an variable .
Ex- int a=10;
Ex- float a=10.1544;
Classification Data Types in c
void Unum
Primitive Data Type
(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 .
(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.