Search

Sponsored Links

Meta

Categories

Archives

Recent Posts

RSS Feeds

06
Feb

Data types in C

Related Blog Items

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)
  • Real floating types (float, double, long double)
  • Complex floating types (float _Complex, double _Complex, long double _Complex)  (New feature
  • void is an empty set of values
  • Derived types (struct 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 type; arrays and structures are collectively called aggregate types.

Popularity: 10%

You need to log on to convert this article into PDF


Related Blog Items

No Comments

No comments yet.

Leave a comment

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image