Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdio.h"
- int main(void) {
- printf("Anzahl Bytes von char: %lu\n", sizeof(char));
- printf("Anzahl Bytes von short: %lu\n", sizeof(short));
- printf("Anzahl Bytes von unsigned short: %lu\n", sizeof(unsigned short));
- printf("Anzahl Bytes von int: %lu\n", sizeof(int));
- printf("Anzahl Bytes von unsigned int: %lu\n", sizeof(unsigned int));
- printf("Anzahl Bytes von float: %lu\n", sizeof(float));
- printf("Anzahl Bytes von long: %lu\n", sizeof(long));
- printf("Anzahl Bytes von unsigned long: %lu\n", sizeof(unsigned long));
- printf("Anzahl Bytes von long long: %lu\n", sizeof(long long));
- printf("Anzahl Bytes von unsigned long long: %lu\n", sizeof(unsigned long long));
- printf("Anzahl Bytes von double: %lu\n", sizeof(double));
- printf("Anzahl Bytes von long double: %lu\n", sizeof(long double));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement