krishna_1980
Junior Member level 3
return double pointer
how to retern a double pointer from a function.y the following code is not working..
char **func(void);
main()
{
char **ch;
ch=func();
prinyf("%s%s",ch[0],ch[1]);
}
char **func()
{
char *p[2]={"a","b"};
char **k;
k=p;
return(k);
}
how to retern a double pointer from a function.y the following code is not working..
char **func(void);
main()
{
char **ch;
ch=func();
prinyf("%s%s",ch[0],ch[1]);
}
char **func()
{
char *p[2]={"a","b"};
char **k;
k=p;
return(k);
}