a bit confused with char string~
as we know something like this would get the value of the pointer: *pt
and this would get the adress what the pointer point to: &pt
but when I experiment this to char strings I got the different response.
for example:
void main()
{
char arr[]="Hello World";
cout << &arr << endl;
}
Let's check what we get. :rolleyes:
Re: a bit confused with char string~
Quote:
Originally posted by black
void main()...
Let's check what we get. :rolleyes:
We get slapped on the wrist for using void main.