i'm not sure if this is explained in another tutorial, but i had to go to IRC to ask why we don't dereference the &a...apparently the compiler dereferences the reference automatically, so we don't have to cout <<*a<<endl;. you actually get an error when trying that.
i'm not sure if this is explained in another tutorial, but i had to go to IRC to ask why we don't dereference the &a...apparently the compiler dereferences the reference automatically, so we don't have to cout <<*a<<endl;. you actually get an error when trying that.
corteplaneta 1 year ago
2 the viewers: you ought to see C++ Basic Skills: Lesson 23 "Const-ness" (part 2 of 2)
arnhemsemeisjes 1 year ago
can I ask which compiler do you use ?? ! ..
and really you are a nice programmer and ur future is bright :D ... hope to answer me :)
themiracle1995 1 year ago