Jul 10
  • A variable name is any combination of 1 to 31 alphabets,digits or underscores.
  • The first character in the variable name must be alphabet or underscore.
  • No commas or blanks are allowed within a variable name.
  • No special symbol other than an underscore can be used in a variable name.
  • The keywords cannot be used as variable names because if we do so we are trying to assign a new meaning to the keyword,which is not allowed by the computer.

Example

int si_t;

char code;

float sum_1;

char ss_3_hg;

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Blogplay
  • LinkedIn
  • MySpace
  • Reddit
  • RSS
  • Twitter

written by Shweta