Come mai se faccio girare questo programma il sizeof di test mi
rimane sempre uguale a 4...?
non dovrebbe aumentare ???
codice:#include <stdlib.h> #include <stdio.h> int main() { unsigned int *test; unsigned int i; test = (unsigned int *) malloc (sizeof(unsigned int)); printf ("sizeof(test) : %d \n", sizeof(test)); for (i=1; i < 10; i++) { test = (unsigned int *) realloc (test, i*sizeof(unsigned int)); printf ("sizeof(test) : %d \n", sizeof(test)); } free (test); getchar(); return 0; };