//P-2: bitwise operator left shift operator
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
cout << 5 << "\t" << 3; //insertion put to operator
cout << endl << (5 << 2); // left shift operator means (5 * 2 * 2)
getch();
}
//P-2: bitwise operator left shift operator
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
cout << 5 << "\t" << 3; //insertion put to operator
cout << endl << (5 << 2); // left shift operator means (5 * 2 * 2)
getch();
}
Comments
Post a Comment