Re: what is *&???
It's actually a tricky question from 'pointers' in c.
char *p is a character type pointer.It means the the content at the address p, is of type char.
& is, well you can say, is an inverse operator of *.means &* just cancel each other of.
So 'printf("%c\n",*&*p)' is just 'printf("%c\n",*p)'
Since *p is a char and not a group of characters, p="Hello" will only store 'H' at the address p.
p=>an address *p=>content at that address.
This is basic stuff .You should have figured it out on your own.
__________________
I don't always make sense,but when I do,I don't.
|