Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. int in;
  2. long lon;
  3. char cha;
  4. short shor;
  5. float floa;
  6. double doubl;
  7. long long lonlon;
  8. unsigned int unsignein;
  9. unsigned long unsignelon;
  10. unsigned short unsigneshor;
  11. unsigned long long unsignelonlon;
  12. printf("int - %lu bajtow = %lu bitow\n",sizeof(in), 8*sizeof(in));
  13. printf("long - %lu bajtow = %lu bitow\n",sizeof(lon), 8*sizeof(lon));
  14. printf("Char - %lu bajtow = %lu bitow\n",sizeof(cha), 8*sizeof(cha));
  15. printf("short - %lu bajtow = %lu bitow\n",sizeof(shor), 8*sizeof(shor));
  16. printf("float - %lu bajtow = %lu bitow\n",sizeof(floa), 8*sizeof(floa));
  17. printf("double - %lu bajtow = %lu bitow\n",sizeof(doubl), 8*sizeof(doubl));
  18. printf("long long - %lu bajtow = %lu bitow\n",sizeof(lonlon), 8*sizeof(lonlon));
  19. printf("unsigned int - %lu bajtow = %lu bitow\n",sizeof(unsignein), 8*sizeof(unsignein));
  20. printf("unsigned long - %lu bajtow = %lu bitow\n",sizeof(unsignelon), 8*sizeof(unsignelon));
  21. printf("unsigned short - %lu bajtow = %lu bitow\n",sizeof(unsigneshor), 8*sizeof(unsigneshor));
  22. printf("unsigned long long - %lu bajtow = %lu bitow\n",sizeof(unsignelonlon), 8*sizeof(unsignelonlon));
  23. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement