top of page
Search
Writer's pictureHarshit Sharma

Data types in C++

Data types are classified into three categories:

  1. Fundamental Data Types:These are those data types which are already defined in the compiler these are like int,char,double,float and void.

  2. 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.

  3. 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;

1 view0 comments

Recent Posts

See All

Hozzászólások


Post: Blog2_Post
bottom of page