Variables in C-Language
Data:- Raw facts or figure which is meaningless is called Data.
Ex- a, 6, $, e, etc.
Definition
- It is a name of storage space which is used to store Data.
- It's value is Changable.
- It always declared Data-type.
- It always contain last value stored in it.
Rules for making Variables in C-Language:-
- The first Character must be an alphabet or underscore ( _ ).
- No commas or blanks are allowed.
- No special Symbols other than underscore is allowed.
- Variables names are case sensitive.
Syntax:-
Data_type variable_name = value(Data);
Examples:-
int a= 10;
int x2y= 2;
int x#12= 3;
Note:-
i). In C-Programming no any variable will start with numbers.
ii). No any keywords can use as variable name in C-Programming.
Comments