#include <iostream>
using namespace std;
int main()
{
//Bitwise Shift Operators - Left Shift ( << )
// Note:- a * 2^b
cout << (7 << 2) << endl;
// Bitwise Shift Operatr - Right Shiift ( >> )
// Note:- a/2^b
cout << (7 >> 2) << endl;
return 0;
}
#include <iostream> using namespace std; struct Node { int data; Node* next; }; class Stack { Node* top; public: Stac...
No comments:
Post a Comment