//line 4: warning: passing argument 1 of 'foo' from incompatible pointer typeCode:1 foo(const char **p) { } 2 main(int argc, char **argv) 3 { 4 foo(argv); 5 }
If u take the strlen function which has the prototype
U get ur code compiled without getting any warning when u pass char* argument. So y is there a warning in this case?Code:size_t strlen(const char *s);