Previous Next

C Variables

Variables are used as holders of data values.

In C, variables are classified into different types:

Variable Declaration

Variable declaration is the act of defining the name and type of a variable prior to its use in the program.
Syntax:

Rules for Naming Variables

We can name the variable anything provided that it complies with the rules below:

Previous Next