char* myFunc (char *ptr)
{
ptr += 2;
return (ptr);
}
int main()
{
char *a, *b;
a = "PINKY";
b = myFunc (a);
return 0;
}
Y2hhciogbXlGdW5jIChjaGFyICpwdHIpCnsKIHB0ciArPSAyOwogcmV0dXJuIChwdHIpOwp9IAppbnQgbWFpbigpCnsKIGNoYXIgKmEsICpiOwogYSA9ICJQSU5LWSI7CiBiID0gbXlGdW5jIChhKTsKIHByaW50ZiAoImIgPSAlcyBcbiIsIGIpOwogcmV0dXJuIDA7Cn0=