Pointer and the String | pointer in function through passing the argument

How to pass the variable in function through pointer variable

char* myFunc(char *ptr)
{
Ptr+=7;
return(ptr);
}

Void main()
{
Char *x,*y;
X=”STUDENTWEBSITE”;
y=myFunc(x);
printf(“Y=%s \n”,y);
}

Debugging answer:
Y=WEBSITE

Debugging solution:
Ptr it is increase there char after the 7 character
So it will display website

Related post