Skip to content

Commit

Permalink
6-size.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Princexz committed Dec 31, 2022
1 parent 9c6845b commit 339d607
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions 0x00-hello_world/6-size.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ int main(void)
long long int d;
float f;

printf("size of a char: %d byte(s)\n", (unsigned long) sizeof(a));
printf("size of a int: %d byte(s)\n", (unsigned long) sizeof(b));
printf("size of a long int: %d byte(s)\n", (unsigned long) sizeof(c));
printf("size of a lolng lolng int: %d byte(s)\n", (unsigned long) sizeof(d));
printf("size of a float: %d byte(s)\n", (unsigned long) sizeof(f));
printf("size of a char: %d byte(s)\n", (int) sizeof(a));
printf("size of a int: %d byte(s)\n", (int) sizeof(b));
printf("size of a long int: %d byte(s)\n", (int) sizeof(c));
printf("size of a lolng lolng int: %d byte(s)\n", (int) sizeof(d));
printf("size of a float: %d byte(s)\n", (int) sizeof(f));
return (0);
}

0 comments on commit 339d607

Please sign in to comment.