summaryrefslogtreecommitdiff
path: root/c,cc/type_size.c
blob: 18edb1faefc74d8b86d0939a828710334083dbe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>


int main(void)
{
  printf("char: %d\n", sizeof(char));
  printf("int: %d\n", sizeof(int));
  printf("float: %d\n", sizeof(float));
  printf("double: %d\n", sizeof(double));
  return 0;
}