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; }