0

Can a variable start with a number?If not then why?

22nd Aug 2016, 5:53 PM
Amiy “Alpha1” Alpha
Amiy “Alpha1” Alpha - avatar
2 Answers
0
A variable name cannot start with a number as the formal grammar by which the compiler parses source code does not allow it. See http://www.nongnu.org/hcb/#identifier , if you can read Backus-Naur-Form (abbreviation: BNF; BNF is a way formal grammar is written down).
22nd Aug 2016, 7:12 PM
Stefan
Stefan - avatar
0
No its not possible because it's a constant number. Generally we take english alphabets for variable.
24th Aug 2016, 8:06 AM
Gaurav Sahadev
Gaurav Sahadev - avatar