Sunday, January 10, 2010

What string does ptr point to in the sample code below?

char *ptr;
char myString[] = "abcdefg";
ptr = myString;
ptr += 5;

a) fg
b) efg
c) defg
d) cdefg
e) None of the above

No comments: