C Language Fundamental Data Types: Int, Float, Char, Double

December 27, 2009

Fundamental / Basic / Primary Data Types in C Language

The fundamental data types are of following types:

Integer(int) data type:

Integers are whole numbers. They have no fractional parts. These integers are represented using int data type. Integers can be positive or negative. The integer variable consumes 2 bytes of memory in the code.

Example:

#include
Void main()
{
int num;
num=17;
}

Character(char) data type: WAIT! There is more to read… read on »

TopOfBlogs