Skip to content

Instantly share code, notes, and snippets.

@wbadart
Created October 4, 2016 03:42
Show Gist options
  • Save wbadart/0d9e68de895e96a8091ddceb2918eb2e to your computer and use it in GitHub Desktop.
Save wbadart/0d9e68de895e96a8091ddceb2918eb2e to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(void){
printf("char: %d\n", sizeof(char));
printf("short: %d\n", sizeof(short));
printf("int: %d\n", sizeof(int));
printf("long: %d\n", sizeof(long));
printf("long long: %d\n", sizeof(long long));
printf("float: %d\n", sizeof(float));
printf("double: %d\n", sizeof(double));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment