Skip to content

nullptr 章节根据代码实践,输出与文中不一致 #136

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

Closed
simonkuang opened this issue Oct 20, 2020 · 0 comments
Closed

nullptr 章节根据代码实践,输出与文中不一致 #136

simonkuang opened this issue Oct 20, 2020 · 0 comments

Comments

@simonkuang
Copy link

问题描述

请在此描述你的问题,提问前请参考提问的智慧

OS: CentOS 8
Clang: 9.0.1(installed by dnf)and 11.0.0(compiling manually)
执行 nullptr 章节的代码,按照文章中内容,期望返回如下。

foo(int) is called
foo(char*) is called

实际输出。

NULL == 0
foo(int) is called
foo(char*) is called

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant