diff options
author | Pushkar Sharma <thepsguy@icloud.com> | 2015-10-05 00:13:54 +0530 |
---|---|---|
committer | Pushkar Sharma <thepsguy@icloud.com> | 2015-10-05 00:13:54 +0530 |
commit | 87e8e77e5fd8d84a252dbb6d6697202118378774 (patch) | |
tree | 53b81c1a15483e948bf9933fd64e1947322e88f1 | |
parent | 9bc553c46ce9b7154ec7c82451d71608f4beda82 (diff) |
Fixed a mistake from previous commit.
Better explained reference address.
-rw-r--r-- | c++.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c++.html.markdown b/c++.html.markdown index bbd2f9a9..bd86e9e5 100644 --- a/c++.html.markdown +++ b/c++.html.markdown @@ -245,9 +245,9 @@ cout << fooRef; // Prints "I am foo. Hi!" // Doesn't reassign "fooRef". This is the same as "foo = bar", and // foo == "I am bar" // after this line. -cout << &fooRef << endl; //Prints address of fooRef +cout << &fooRef << endl; //Prints address of foo fooRef = bar; -cout << &fooRef << endl; //Prints address of fooRef, AGAIN +cout << &fooRef << endl; //Still prints address of foo cout << fooRef; // Prints "I am bar" //The address of fooRef remains the same, i.e. it is still referring to foo. |