Showing posts with label Pointer Arithmetic. Show all posts
Showing posts with label Pointer Arithmetic. Show all posts

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