Data Types in C:

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.

Data Types in C

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).
  1. defining an integer: int a = 30;
  2. %d is used to display an integer type of value using printf function.
 

 

Post a Comment

0 Comments