<< Prev Question Next Question >>

Question 13/17

What happens if you try to compile and run this program?
#include <stdio.h>
int main (int argc, char *argv[]) {
char *t = "abcdefgh";
char *p = t + 2;
int i;
p++;
p++;
printf("%d ", p[2] - p[-1]);
return 0;
}
Choose the right answer:

LEAVE A REPLY

Your email address will not be published. Required fields are marked *