What are the requirements for variable names in C language?
Extended data:
Common naming methods for variable names:
1, Hungarian nomenclature, is to add several characters representing data types before each variable name. The basic principle is: variable name = attribute+type+object description. If I stands for int, then all variables starting with I stand for int type. S stands for String, and all variables whose names begin with S stand for variables of type String.
2.Camel nomenclature refers to the use of mixed uppercase and lowercase letters to form the names of variables and functions. Hump naming is similar to Pascal's, except that the first letter is lowercase, such as userName. Its name is because it looks like a hump.
3. Pascal nomenclature, that is, Pascal nomenclature. The practice is to capitalize the first letter, such as UserName, which is often used to name the variables of a class.