I'm reading through a "Teach Yourself C in 21 Days" book (published '97), basically so I have a comprehensive learning experience in learning C++ and C#.
It says, and I quote:
Quote:
*string and string[] are equivalent
Quote:
Is this functional:
char *string1;
char *string2 = "this is a string";
string1 = string2;
The very next question is:
Quote:
Is this functional:
char string1[];
char string2[];
string1 = string2;
So, if the question isn't obvious...
Is *string1 really == string1[], or is the book lying to me?
In both declarations ('char *string1' vs 'char string1[]'), 'string1 == &string1[0]' regardless, right? ...right?
So how are they different?
I feel like I'm taking crazy pills...
Thanks!

