Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.83 KB | None | 0 0
  1. #include "stdio.h"
  2.  
  3. int main(void) {
  4.   printf("Anzahl Bytes von char: %lu\n", sizeof(char));
  5.   printf("Anzahl Bytes von short: %lu\n", sizeof(short));
  6.   printf("Anzahl Bytes von unsigned short: %lu\n", sizeof(unsigned short));
  7.   printf("Anzahl Bytes von int: %lu\n", sizeof(int));
  8.   printf("Anzahl Bytes von unsigned int: %lu\n", sizeof(unsigned int));
  9.   printf("Anzahl Bytes von float: %lu\n", sizeof(float));
  10.   printf("Anzahl Bytes von long: %lu\n", sizeof(long));
  11.   printf("Anzahl Bytes von unsigned long: %lu\n", sizeof(unsigned long));
  12.   printf("Anzahl Bytes von long long: %lu\n", sizeof(long long));
  13.   printf("Anzahl Bytes von unsigned long long: %lu\n", sizeof(unsigned long long));
  14.   printf("Anzahl Bytes von double: %lu\n", sizeof(double));
  15.   printf("Anzahl Bytes von long double: %lu\n", sizeof(long double));
  16.   return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement