i get 20 in both outputs, y has the array not grown ?
Code:#include <stdio.h>
#include <stdlib.h>
int main( void )
{
int bytes[5];
int * pBytes = bytes;
printf("%d",sizeof(bytes));
pBytes = (int*)realloc( pBytes, 2 * sizeof( bytes ) ); // grow it 2x
printf("%d",sizeof(bytes));
getchar();
return 0;
}