i have checked in general that if we take
void* data; and then do data=(char*)malloc(sizeof(char)); then it gives no warning
but if we take void** data; and then i do
data=(char**)malloc(sizeof(char*));
then it gives a warning of incompatible pointer assignment…..help required here plzz post if anybody knows why
Yes bro… I just saw it… thnx for arising such a prob…
malloc always return the pointer of void* type and here you are trying to replace the void * pointer to char ** which is wronge as its pointer to a char * pointer