Found the following piece of code given in a test which asked to figure out the output.
#include int gate(char *P) { char *q = P; q++;