|
Hmm I think im still having trouble understanding
Is & and * the same thing?
So when you use * it defines it to the address of a variable?
So why do you use it when you declare a variable? Wouldnt you only do it when you define a variables name... like whats the point of doing this char* bloh; ? What does it do diffrently than char bloh; ?
And this is the last question I have, I think it doesnt work but I dont know...
char one = "One";
char two = *one;
char one = "Two";
cout << two;
Would that ouput two? or nothing? or how could I make it output two without drasticaly changing the code? I really dont get this... I thought I did but now I dont...
Last edited by brokenhope; Apr 25th, 2005 at 7:15 PM.
|