aboutsummaryrefslogblamecommitdiff
path: root/tst/sizeof.c
blob: 35df22366606a9310520aaf1c88dcf3e6a27b993 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                     
#include <stdio.h>
#include <stdlib.h>

int main()
{
	char toto[1024];
	char *tata;

	tata = malloc (sizeof(char)*1024);

	printf ("sizeof(toto) : %d\n", sizeof(toto));
	printf ("sizeof(tata) : %d\n", sizeof(tata));

	return 0;
}