C Programming Language - Data Types
C Programming Language - Data Types
In this tutorial you will learn about C language data types, Primary data type, Integer Type, Floating Point Types, Void Type, Character Type, Size and Range of Data Types on16 bit machine, derived data type, Declaration of Variables, User defined typedeclaration, Declaration of Storage Class, auto, static, extern, register, Defining SymbolicConstants, Declaring Variable as Constant and Volatile VariableA C language programmer has to tell the system before-hand, the type of numbers or characters he is using in his program. These are data types. There are many data types inC language. A C programmer has to use appropriate data type as per his requirement.C language data types can be broadly classified asPrimary data typeDerived data typeUser-defined data type
Primary data type
All CCompilersaccept the following fundamental data types
1. Integer int2. Character char 3.Floating Point
float4. Double precision floating pointdouble5.Void void
The size and range of each data type is given in the table below
Leave a Comment