Thursday, September 3, 2015

Variables in C(MCA I)

Rules For Constructing Variable Name

  1. Characters Allowed :
    • Underscore(_)
    • Capital Letters ( A – Z )
    • Small Letters ( a – z )
    • Digits ( 0 – 9 )
  1. Blanks & Commas are not allowed
  2. No Special Symbols other than underscore(_) are allowed
  3. First Character should be alphabet or Underscore
  4. Variable name Should not be Reserved Word

Fundamental Attributes of C Variable :

  1. Name of a Variable
  2. Value Inside Variable
  3. Address of Variable
  4. Size of a Variable
  5. Type of a Variable

Variable Declaration ?

  • To Declare is nothing but to represent a variable.
  • Only Variable name and its Data type is Represented in Declaration.

No comments:

Post a Comment