Hmm lets see
<!--
it should be
p = (buf+6);
or
p = (buf+5);
because technically buf[5] means *(buf+5)
and you shouldn't try to assign buf[5] to p, because it wants an address, not the value pointed to by the address. And also p didn't point to an address yet, thus it would be a bad idea to try and assign a value to *p
and printf should be printf("%d", *p);
i should just show u the finished code
void main()
{
char *p;
char buf[10] = {1,2,3,4,5,6,9,8};
p = (buf+5); // or p = (buf+6);
printf("%d", *p);
}
and the output is 6, or 9 if you wanted buf+6
-->