Hello everybody, I want to reference a char * array in C but not success. Can you help me please?
void refarray(char * &arraybuff[])
{
char *s1="hello";
char *s2="everybody";
arraybuff[0]=s1;
arraybuff[0]=s2;
}
void main()
{
char* getarray[2];
refarray(&getarray[]);
printf("%s %s",getarray[0],getarray[1]);
}