Basic Data Types
Data types define how data is interpreted
Examples:int (for integers)float (for floating point numbers)double (for double precision floating point numbers)char (for characters)
Note: the size of each data type is dependent on implementation. The command sizeof()returns the size of the type in bytes:sizeof(char) = 1sizeof(int) = 4sizeof(float) = 4sizeof(double) = 8
Examples for defining/declaring variables:int j; /* j is an integer */float f; /* f is a float */char c1,c2; /* c1, c2 are characters *//* and this is just a comment…. */