You are on page 1of 1

Custom Search

Home C C++ C# Java SQL

Limited edition collections


MAC Great India Place Noida

Discover your perfect makeup look at a MAC


store near you

Noida

WEBSITE DIRECTIONS

Data Types in C
A data type specifies the type of data that
a variable can store such as integer,
floating, character, etc.

There are the following data types in C


language.

Types Data Types

Basic Data Type int, char, float, double

Derived Data array, pointer,


Type structure, union

Enumeration enum
Data Type

Void Data Type void

Basic Data Types

The basic data types are integer-based


and floating-point based. C language
supports both signed and unsigned
literals.

The memory size of the basic data types


may change according to 32 or 64-bit
operating system.

Let's see the basic data types. Its size is


given according to 32-bit architecture.

Data Memory Range


Types Size

char 1 byte −128 to 127

signed 1 byte −128 to 127


char

unsigned 1 byte 0 to 255


char

short 2 byte −32,768 to


32,767

signed 2 byte −32,768 to


short 32,767

unsigned 2 byte 0 to 65,535


short

int 2 byte −32,768 to


32,767

signed int 2 byte −32,768 to


32,767

unsigned 2 byte 0 to 65,535


int

short int 2 byte −32,768 to


32,767

signed 2 byte −32,768 to


short int 32,767

unsigned 2 byte 0 to 65,535


short int

long int 4 byte -2,147,483,648


to 2,147,483,647

signed 4 byte -2,147,483,648


long int to 2,147,483,647

unsigned 4 byte 0 to
long int 4,294,967,295

float 4 byte

double 8 byte

long 10 byte
double

← prev next →

Help Others, Please Share

Make it in Germany
Working, studying, living in Germany

Make it in Germany Visit Site

Join Javatpoint Test Series


Placement AMCAT Bank GATE
Papers eLitmas PO/Clerk NEET
TCS Java UPSSSC CAT
HCL Python Government
Railway
Infosys C Exams CTET
IBM Programming
SSC IIT JEE
Accenture NetworkingCivil
Services
SBI

Learn Latest Tutorials

Scipy Tutorial

Spring Clo. Scipy

DevOps GitHub

Matlab Tutorial

Matlab Microservices

Latex Tutorial

Inkscape Latex

Magento RESTful

Linq Tutorial

LINQ Laravel

Preparation

Aptitude

Aptitude Reasoning

Verbal Ability

Verbal A. Interview

Company

Trending Technologies

AWS Tutorial

AI
AWS

Cloud tutorial

Selenium Cloud

Hadoop tutorial

Hadoop ReactJS

D. Science Angular 7

Git Tutorial

Blockchain Git

ML

B.Tech / MCA

DBMS tutorial

DS
DBMS

DAA tutorial

OS
DAA

C. Network Compiler D.

COA D. Math.

E. Hacking C. Graphics

html tutorial

Software E.
Web Tech.

Cyber Sec. Automata

C++ tutorial

C C++

Java tutorial

.Net
Java

Python tutorial

Python Programs

Control S. Data Mining

You might also like