CPP Variable

A variable is a temporary memory location that holds its data temporarily. CPP requires the data type of the variable to be well defined at the time of variable declaration, depending on its value.


data_type variable_list;

Rules for using CPP Variables:

  • CPP Variable name starts with a letter or underscore only; numbers and special characters are restricted for this.
  • CPP Variables name can contain alphanumeric characters and underscores only.
  • CPP Variables name can not contain any white space within it.
  • CPP Variables name should not be same as any reserved word or keyword already defined in CPP library.
Please follow and like us:
Content Protection by DMCA.com