Ok this may sound geeky, but I found a very useful looking tutorial about C++ pointers. This was the most clean and informal tutorial I ever met regarding this subject and it's very easy to understand. Let me quote, khhmm, khhm:
Notice the difference between the reference and dereference operators:Thus, they have complementary (or opposite) meanings. A variable referenced with & can be dereferenced with *.
- & is the reference operator and can be read as "address of"
- * is the dereference operator and can be read as "value pointed by"
I imagine you are eager to read the tutorial so here is the link: http://www.cplusplus.com/doc/tutorial/pointers.html
No comments:
Post a Comment