RicardasSim

(unsigned long)-1 (unsigned long)~0

Dec 27th, 2018
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. int main (int argc, char **argv){
  6.  
  7.     printf("0x%lx\n", (unsigned long) -1);
  8.     printf("0x%lx\n", (unsigned long) ~0);
  9.    
  10.     return 0;    
  11. }
  12.  
  13. /*
  14.  output:
  15.  
  16.  0xffffffffffffffff
  17.  0xffffffffffffffff
  18.  
  19.  */
Advertisement
Add Comment
Please, Sign In to add comment