C output type question

Q.  C: Trace the output

int main()

    {

char c[]="CAREERRIDE";
char *p=c;
printf ("%s",p+p[3]-p[1]);
return 0;

    }

- Published on 22 Jun 15

a. CAREERRIDE
b. ERRIDE
c. REERRIDE
d. None of the above.

ANSWER: ERRIDE

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)