TutorialLab
data types in c language
Home » C Programming » Data Types In C Language

Data Types In C Language

Data Types In C Language

Data types are the keywords, which are used for assigning a type to a variable.

Data Types in C language are follows:

 

Fundamental Data Types

  1. Integer types
  2. Floating Type
  3. Character types

 

Integer Data type:-

Here, var1 is a variable of type integer. The size of int is 2 byte or 4 bytes. For example, 2, 500, etc.

 

Float Data type:-

Floating point data hold real values.For example: 3.45, -8.29 etc.

 

Character Type:-

Character type contain 1 byte in memory.Character are always enclosed in single-quote marks.For example; ‘A’, ‘x’ etc.

 

PREVIOUS : Variables and Constants In C Language

NEXT : First Program In C Language

hassan

A Freelancer web developer, graphic designer and own this blog to spread knowledge.My hobby is computer problem's solving and i love to help other in this field.

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.