Saturday, June 20, 2020

Variables in C

Variable is a data whose value is change during execution of program.Variable is an identifier or name. Variable is used to store any value. During the execution of program value of variable may be different.
Rules to define a variable name:
  1. Variable is combination of alphabet , Numbers and Special symbol.
  2. Name of variable must start with alphabet.
  3. Maximum 8 alphabets can be used in variable name.
  4. No blank space is used in between two characters.
  5. Can not define two variables of same name in a program.
  6. Keywords can not be used as variable name.

No comments:

Post a Comment