Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page 200: The text states that the address of int x prints 0, which is wrong. #84

Closed
WraithGlade opened this issue Dec 30, 2019 · 1 comment

Comments

@WraithGlade
Copy link

@WraithGlade WraithGlade commented Dec 30, 2019

In the following text:

The address refers to the address of x ➊ and prints 0 ➋.

The statement is wrong as worded.

The code actually prints a non-zero address for x (in this case 0x000000F79DCFFB74), but then later also prints a nullptr as a hex string which ends up being 0x0000000000000000.

@JLospinoso

This comment has been minimized.

Copy link
Owner

@JLospinoso JLospinoso commented Jan 1, 2020

Thanks, @WraithGlade!

@JLospinoso JLospinoso closed this in f3f67a7 Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.