
-----------------------------------
ScaryRat
Sun Aug 29, 2010 8:27 pm

Pointers to chars
-----------------------------------
I understand pointers and arrays, but this is confusing:

char * stuff = "stuff"; 

I believe this would be valid, but how could a pointer itself (stuff) be defined as a string? I thought the only definition of pointers are supposed to be addresses?

void FUNCTION (char * other_stuff);
FUNCTION("other stuff");

Once again, a string of text is passed onto a pointer. Why would people do this instead of passing the argument onto a string? And if I were to do this :

cout 