Fundamental of C
About Variable
A variable is a name location of memory where data will be store and manipulated during runtime.
A variable is a container that is used for store a value.
Syntax:- to defined a variable
|
NOTE:-
(i) 

A storage specifier, modifier or qualifier are optional with variable definition statement. It can be used if needed.



Datatype Modifier Storage specifier Qualifier
void signed auto const
char unsigned static variable
int short extern
float long register

Example:- int a;
(ii) A variable may be initialized by a value at definition time.
Example:- int a=20;
(iii) More than one similar type variable may be defined into single line separated by comma.
Example:- int a=10,b;
Comments
Post a Comment