Topic-5: Data Type

What is Datatype ?

  • If we want to store any data inside a variable , first we have to mention it’s datatype .
  • Datatype is a way of representing data .
  • Data Types are classified into 2 types .

Primitive Data Type :-

Primitive Data Type Is known as built in data type . Example:- int,char,float,double,void

Non-Primitive Data Type :-

Non-Primitive Data Type Is known as user defined data type . Example:- array,structure,union , etc

Leave a Comment

Your email address will not be published. Required fields are marked *