hi, this is my first post and my question is...
When using the sizeof operator on an array name it returns
the size that the whole array allocates,eg
is there a way to do the same on a dynamic array? egCode:int array[ 20 ] = { 0 }; printf( "%u ", sizeof( array ) ); /* returns 80 */
thanksCode:int *array = ( int * ) malloc( 20 * sizeof( int ) );