Variables In C Programming Language

It is a name which is used to store some value. Unlike constants that remain unchanged dıring execution of program a variable may take different values during program execution. A variable name must be chosen by the programmer, it reflects the function or nature of it in the program.


Naming Conventions For Variables :
  • Variable name must begin with an alphabet.
  • The length of a variable name shouldn't be more than 8 characters.
  • Upper case and lower case can be used, but they are not same.
  • Keywords can't be used as a variable name.
  • White space is not allowed in the variable name.
  • Some valid variable names are; Sum, avg_ht