I have written this bit of code
And I am getting this error when ever I deal with my pointers:Code:char *mystrcpy(char * s1, const char * s2)
{
//Copies s2 into s1, including the null terminating character
int tick = 0;
while(*s2[tick] != 0)
{
*s1[tick] = *s2[tick];
tick++;
}
*s1[tick] = *s2[tick];
return s1;
}
invalid type argument of `unary *'
I cant find anything wrong with it.