Skip to content

Instantly share code, notes, and snippets.

@steshaw
Created October 7, 2020 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steshaw/00445ca18a1a444115b770eb15ecdc96 to your computer and use it in GitHub Desktop.
Save steshaw/00445ca18a1a444115b770eb15ecdc96 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
printf("sizeof(size_t) = %zu\n", sizeof(size_t));
printf("sizeof(short) = %zu\n", sizeof(short));
printf("sizeof(int) = %zu\n", sizeof(int));
printf("sizeof(long) = %zu\n", sizeof(long));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment