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

为什么123页4.1.3节的语句结果是未定义的? #61

Open
lelelelelelelelelelelelelelele opened this issue Mar 23, 2023 · 0 comments

Comments

@lelelelelelelelelelelelelelele

cout << i << " " << ++i << endl;
虽然<<被重载了,但重载不改变优先级,++的优先级比<<高,为什么不先计算++,再<<?为什么输出是未定义的?

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