Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>;
- void shift(int* x, int z)
- {
- *x = *x << z;
- std::cout << *x << std::endl;
- }
- void main()
- {
- int x = 1;
- for(int y=0;y<8;y++) { shift(&x, 1); }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement