Naming variables in C Language
Following is a one liner definition for naming variables in C Language
Variable name should start with a Letter,
Can contain Letters/ Numbers/ Underscore (_) and should not exceed 8 characters.
Variable Name | Valid/ NotValid |
---|---|
Age | Valid |
Age_ | Valid |
Age_23 | Valid |
_Age | Not Valid |
23_Age | Not Valid |
23Age | Not Valid |
Age> | Not Valid |
Age 23 | Not Valid |