Easy learning with example program codes

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.
Posted in CPP   

Industrial Training

We offers Placement Oriented Training on Java, Spring, JSF, Hibernate, PHP, AngularJS, Angular 4, PLSQL, Oracle BI Publisher etc. We also provides Online training, please mail us at


We also provides the Development services for Website Development , Java Development, PHP Development, Android App Development etc. You can contact us on

Copyright © 2019 CodesJava Protection Status SiteMap Reference: Java Wiki