1) By using #define keyword :- #include using namespace std; #define ALL 20 #define SOME 39 int main ( ) { int a; a=ALL+SOME; cout << a; return 0; } 2) By using const keyword :- #include using namespace std; int main ( ) { int a; const int ALL = 22; const int SOME = 30; a= ALL+SOME; cout << a; return o; } For more visit: http://houseofprogramminglanguages.blogspot.com/