[ create a new paste ] login | about

Link: http://codepad.org/92vDwUlM    [ raw code | output | fork ]

appunti2 - C, pasted on May 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

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


Output:
1
2
3
4
5
6
7
8
char          1
short int     2
int           4
long int      4
long long int 8
float         4
double        8
long double   12


Create a new paste based on this one


Comments: