Join Regular Classroom : Visit ClassroomTech

Variable declaration in C

Variable declaration in C:

In C programming we need to declare variable which we will use throughout the code. Variable declaration means declaring the data types of the variable and the name of the variable.
Through variable declaration we make clear that how much space that variable will require. C programming doesn’t support dynamic variable declaration. There are two ways in which we can declare a variable-

Syntax :
For single variable :
       data_type variable_name;
For multiple variables:
       data_type variable_name1, variable_name2, variable_name3;

Example:

Categories
Pages
Recent Posts