Data types are classified into three categories:
Fundamental Data Types:These are those data types which are already defined in the compiler these are like int,char,double,float and void.
Derived data types:These are those data types which are derived from the fundamental data types. It is classified as array,function ,references,pointer and constants.
User Defined Data Types: These are those data types which uses the funcctionality of both derived and fundamental data type. It is classified as class,structure ,union and enum.
VARIABLES:
These are those which stores on memory location and hold value into which can be changed while program execution
Declaration
datatype variablename;
Intialization
datatype variablename=value;
Hozzászólások