Variables:
A variable is a named location in memory that is used to hold a value that can modified by a program.
The general form of a variable declaration is
Variable-type variable –name
By the declaration of variables, there are three type Variables;
1. Loacal
2. Formal
3. Global
Local Variable: If a variable declared inside a function called Local Variable. You may called it also Automatic Variable.
Condition:
1. It works in a function or a code block, if you exit form function the local variable destroyed.
Comments
Post a Comment
Give your valuable Comment...