Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int in;
- long lon;
- char cha;
- short shor;
- float floa;
- double doubl;
- long long lonlon;
- unsigned int unsignein;
- unsigned long unsignelon;
- unsigned short unsigneshor;
- unsigned long long unsignelonlon;
- printf("int - %lu bajtow = %lu bitow\n",sizeof(in), 8*sizeof(in));
- printf("long - %lu bajtow = %lu bitow\n",sizeof(lon), 8*sizeof(lon));
- printf("Char - %lu bajtow = %lu bitow\n",sizeof(cha), 8*sizeof(cha));
- printf("short - %lu bajtow = %lu bitow\n",sizeof(shor), 8*sizeof(shor));
- printf("float - %lu bajtow = %lu bitow\n",sizeof(floa), 8*sizeof(floa));
- printf("double - %lu bajtow = %lu bitow\n",sizeof(doubl), 8*sizeof(doubl));
- printf("long long - %lu bajtow = %lu bitow\n",sizeof(lonlon), 8*sizeof(lonlon));
- printf("unsigned int - %lu bajtow = %lu bitow\n",sizeof(unsignein), 8*sizeof(unsignein));
- printf("unsigned long - %lu bajtow = %lu bitow\n",sizeof(unsignelon), 8*sizeof(unsignelon));
- printf("unsigned short - %lu bajtow = %lu bitow\n",sizeof(unsigneshor), 8*sizeof(unsigneshor));
- printf("unsigned long long - %lu bajtow = %lu bitow\n",sizeof(unsignelonlon), 8*sizeof(unsignelonlon));
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement