Variables

    1100606 VIEW 3 0

Variable:  C variable is a named location in a memory where a program can manipulate the data. This location is used to hold the value of the variable. The value of the C variable may get change in the program. C variable might be belonging to any of the data type like int, float, char etc.

Rules for naming C variable:

  • Variable name must begin with letter or underscore.
  • Variables are case sensitive
  • They can be constructed with digits, letters.
  •  No special symbols are allowed other than underscore.

Example:  sum, height, _value are some examples for variable name