C lang construct n diff data types

The C programming language offers various data types to suit different purposes.  They can be broadly categorized as follows:

+ Integral types (char, short, int, long, long long, enum, _Bool) (long long and _Bool are new feature of C99)

+ Real floating types (float, double, long double)

+ Complex floating types (float _Complex, double _Complex, long double _Complex) (New feature of C99)

+ void is an empty set of values

+ Derived types (structure type, union type, array type, pointer type, function type)

+ Incomplete type (array of unknown size, a structure or union of unknown content)

Real and complex floating types are collectively know as floating types; integral and floating types are collectively called arithmetic types; arithmetic and pointer types are collectively called scalar types; arrays and structures are collectively called aggregate types.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: