Warning in array of pointers "initialization from incompatible pointer type"

With the continuation from what amine.ahd left off, mCount needs to be a char pointer.

char *mCount;     //address holder

mCount = XYZ[var];   

int i = 0;

for( i = 0; i < 6; i ++ )
 printf( "%c ", mCount[i] );

Inserted a few lines of code to test. Although it printed white characters, it seems to be working. More importantly, there are no compilation warnings.

Leave a Comment