top of page
Search

Data types in C++

Writer's picture: Harshit SharmaHarshit Sharma

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

Comments


Post: Blog2_Post

Subscribe Form

Thanks for submitting!

  • Facebook
  • Twitter
  • LinkedIn

©2020 by CODEIN. Proudly created with Wix.com

bottom of page