Integer
#include <stdafx.h>
#include <iostream>
using namespace std;
/* Integer types can contain values in range of 4 bytes only.Within C++ there are various reserved words that can be used to modify the size of an integer.
They include: long, short, signed and unsigned.Signed integers are signed by default whereas unsigned integers are only positive. */
int main()
{
int a=100,b=200,c; /* Integer variable declaration. */
c=a+b;
cout<<"Value of Integer variable= "<<c;
return 0;
}
Output:
Value of Integer variable= 300