Contact Us || Privacy Policy || About Us |
|
Variables in CVariable is a name of the memory location which store data in variable whose value can be changed at the execution time of program. Some Rules for defining variables
Valid variable names: Invalid variable names: Types of Variables in CThere are Five types of variables in c:
1) Local VariableLocal Variable that is declared inside the function or block. It must be declared at the start of the block. You must initialize the local variable before . 2) Global VariableGlobal Variable that is declared outside the function or block. Any function can change the value of the global variable. Global Variable declared at the start of the block. 3) Static VariableStatic Variable that is declared with the static keyword.. 4) Automatic VariableAutomatic Variable explicitly declare an automatic variable using auto keyword. 5) External VariableYou need to use extern keyword.It is flow the global globa myfile.h program1.c
Next TopicData Type in C
|