Saturday, 22 June 2013

variable


  • an identifier whose value is allowed to change during the creation of a program is called variable
  • every variable must be individually declared before it can appear in the program
  • the variable declaration establishes the fact the the identifier is a variable and  specifies the type of variable
rules for constructing variable:
  1. a variable name is any combination of 1 to 8 alphabets,digits,or underscores
  2. the first character in the variable name must be alphabet
  3. no commas or blanks are allowed within the variable name
  4. on special symbol other than an under score can be used in a variable name
  5. ex:si ine ,area,radius,marks1,sub marks

No comments:

Post a Comment