Advertisement
Guest User

Untitled

a guest
Apr 29th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <limits.h>
  3. #include <stdint.h>
  4.  
  5. int main (int argc, char** argv)
  6. {
  7. printf ("%ld %ld\n", sizeof(long), sizeof(int));
  8. printf ("%ld %d\n", LONG_MAX, INT_MAX);
  9. printf ("%d\n", __WORDSIZE);
  10. return 1;
  11. }
  12.  
  13. ------------------
  14.  
  15. [wiking@sandbox ~]$ clang test.c -o test
  16. [wiking@sandbox ~]$ ./test
  17. 8 4
  18. 9223372036854775807 2147483647
  19. 64
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement