Some recent experimentation has lead me to believe that the following two declarations are the same:
Is this true? I used the following code to check:Code:char str[];
char *str;
The string was outputed, which means that an address must have been stored in str, which makes it a pointer. Am I correct?Code:char str[]="Hello World!";
char *ptr=str;
cout << ptr << endl;