Use assignment operator to assign value - C++ Data Type

C++ examples for Data Type:Introduction

Description

Use assignment operator to assign value

Demo Code

#include <iostream>
using namespace std;
int main()//from  w w w.j av  a2 s  . com
{
   int sum;
   sum = 25;
   cout << "The number stored in sum is " << sum << endl;
   sum = sum + 10;
   cout << "The number now stored in sum is " << sum << endl;
   return 0;
}

Result


Related Tutorials