Guest User

Untitled

a guest
May 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <cstdio>
  3. #include <cmath>
  4. #include<iostream>
  5.  
  6. int main() {
  7. signed char BUF[2];
  8. BUF[0] = -84;
  9. BUF[1] = -2;
  10. short d1;
  11. d1 = (BUF[1] << 8) | BUF[0]; // | operator
  12. std::cout << d1 << std::endl;
  13. std::cin.get();
  14. }
Add Comment
Please, Sign In to add comment