InterviewSolution
| 1. |
C Variables |
|
Answer» C Variables Rules to define variablesBelow are 4 most important rules when defining variables in C language:- (1)We can use alphabets, digits and underscore. (2)We can start variable with alphabet and underscore only. But it cannot start with a digit. (3)We cannot use WHITESPACE in variable name. (4)we cannot use variable name that is reserved WORD or keyword like int,float, char etc. valid variable names:- int a; int _xyz; int x20; Invalid variable names:- int 2; int a b; int long; |
|