BASICS OF C:

  1. Variables
  2. Data Types
  3. Operators
  4. Control Statements
  5. Looping Statements
  6. Array

Variables:

A variable is a name of the memory location. It is used to store data. Its value can be changed, and it can be reused many times.

Rules:

Types:

  1. Local variable
  2. Global variable
  3. Static variable
  4. Automatic variable
  5. External variable

Data Types:

A Data type specifies the type of data that a variable can store.

Types:

Types Data Types
Basic Data Type int, char, float, double
Derived Data Type array, pointer, structure, union
Enumeration Data Type enum
Void Data Type void

Operators:

An Operator is simply a symbol that is used to perform operations.

Types:

Control Statements:

A Control Statement is used to check the conditon.

Types:

Looping Statements:

The Looping can be defined as repeating the same process multiple times until a specific condition satisfies. There are three types of loops used in the C language.

Types:

Array:

An Array is defined as the collection of similar type of data items stored at contiguous memory locations. Arrays are the derived data type in C programming language which can store the primitive type of data such as int, char, double, float, etc. It also has the capability to store the collection of derived data types, such as pointers, structure, etc. The array is the simplest data structure where each data element can be randomly accessed by using its index number.

Types: