What is a Data Type in C

Data type is used to specify the type of data.

Type Data types
Basic Data Type int, char, float, double
Derived Data Type array, pointer, structure, union
Enumeration Data Type enum
Void Data Type void

Basic Data Types

Type Storage size Value range
char 1 byte -128 to 127 or 0 to 255
unsigned char 1 byte 0 to 255
signed char 1 byte -128 to 127
int 2 bytes -32,768 to 32,767
unsigned int 2 bytes 0 to 65,535
short 2 bytes -32,768 to 32,767
long 4 bytes -2,147,483,648 to 2,147,483,647
unsigned long 4 bytes 0 to 4,294,967,295
float 4 bytes 1.2E-38 to 3.4E+38 (6 decimal places)
double 8 bytes 2.3E-308 to 1.7E+308 (15 decimal places)
Long double 10 bytes 3.4E-4932 to 1.1E+4932 (19 decimal places)


Recommended Videos

Course Schedule

Name Date
Python Course 2021-01-16 2021-01-17
(Sat-Sun) Weekend batch
View Details
Python Course 2021-01-23 2021-01-24
(Sat-Sun) Weekend batch
View Details
Python Course 2021-01-30 2021-01-31
(Sat-Sun) Weekend batch
View Details

8 thoughts on “Data Types in C”

  1. If some one wishes expert view concerning blogging then i suggest
    him/her to pay a visit this weblog, Keep up the nice work.

  2. Hi there! This is my first visit to your blog!

    We are a collection of volunteers and starting a new project in a
    community in the same niche. Your blog provided us beneficial information to work on. You have done a marvelous job!

  3. Pretty great post. I simply stumbled upon your weblog and
    wished to mention that I have truly enjoyed surfing around your blog posts.
    After all I will be subscribing on your rss ffeed aand I
    am hoping you write again soon!

  4. I am really delighted to read this website posts
    which carries plenty of useful information, thanks for poviding these data.

  5. It’s actually a cool and helpful piece of information. I am satisfied that you simply sharred this helpful information with us.
    Please keep us informed like this. Thank you for sharing.

  6. I feel this is one of the most vital info for me.
    And i’m glad studying your article. However should statement on few basic issues, The web site sstyle is wonderful, thee articles is actually excellent : D.
    Excellent task, cheers

Leave a Reply

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