What is the difference between
Code:#include<stdlib.h> #include<stdio.h> int dothings(char **k){ printf("%c",*k); } int main(){ char* c='h'; dothings(&c); }
and
The output is the same,but i dont understand why.Can you provide an example where the first occasion would be usefull.ThanksCode:#include<stdlib.h> #include<stdio.h> int dothings(char *k){ printf("%c",*k); } int main(){ char* c='h'; dothings(&c); }