As you have in previous chapter what is a variable now I am going to demonstrate that how to declare and read/write into a variable.
Declaration syntax
Declare single variable
Data_type Variable_name;
Declare more than one variable
Data_type Var_name1,var_name2…var_nameN
Declare and initialize
Data_type var_name1=val1,var_name2=val2…var_nameN=valM
Variable Declaration
When you make a variable. It’s known as declaration in terms
of C language. Declaration request OS for claiming space on physical memory.
Initialization
First value assign to a variable after declaration. What if you
didn’t initialize a variable then an unpredicted value assigned which is known
as garbage so initialization is
mandatory for denied facing socking result.