| types/sizeof-floats.c - Et program der 'udregner' bytestørrelsen af float typerne. | Lektion 8 - slide 12 : 29 Program 2 |
/* Compute the size of some fundamental types. */
#include <stdio.h>
int main(void)
{
printf("\n");
printf("Here are the sizes of some floating types:\n\n");
printf(" float:%3u bytes\n", sizeof(float));
printf(" double:%3u bytes\n", sizeof(double));
printf("long double:%3u bytes\n", sizeof(long double));
printf("\n");
return 0;
}