Data Types in C:
In C programming simply we can say Data Types is the declarations for Variables and the set of operations that can be applied to the values/variables.
C has five basic data types and they are as follows:
- integer - keyword used as int
- character - keyword used as char
- floating-point - keyword used is float
- double precision floating point - keyword used is double
- valueless - keyword used is void
Integer :
An integer is a data type that can store the numeric data of type integer. Integer is a whole number that does not have any fractional in contract to real numbers(i.e float in C).
- defining an integer: int a = 30;
- %d is used to display an integer type of value using printf function.
0 Comments
Please do not enter any spam links and Messages in the comment box.