Guest User

Untitled

a guest
Mar 15th, 2017
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. Both of your `65536` are of type `int`. So they stay that type and overflow.
  2.  
  3. Make them `long long`s:
  4.  
  5. temp = 65536LL * 65536LL;
  6.  
  7. or cast:
  8.  
  9. temp = (long long)65536 * 65536;
Advertisement
Add Comment
Please, Sign In to add comment