Loading, please wait...

Data Types

In this Chapter of the tutorial, you are going to learn about Data types in C. In C programming, variables or memory locations should be declared before it can be used. Similarly, a function also needs to be declared before use. Data types simply refer to the type and size of data associated with variables and functions.

 

S.No.

Types

Description

1.

Basic Types

These are arithmetic types and are further classified into: (a) integer types and (b) floating-point types.

2.

Enumerated Types

These are again arithmetic types and they are used to define variables that can only assign certain discrete integer values throughout the

program.

3.

The type void

The type specifier void indicates that no value is available.

4.

Derived types

They include (a) Pointer types, (b) Array types, (c) Structure types, (d) Union types, and (e) Function types.