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

6.24 答案有误 #99

Open
LenaShengzhen opened this issue May 16, 2023 · 1 comment
Open

6.24 答案有误 #99

LenaShengzhen opened this issue May 16, 2023 · 1 comment

Comments

@LenaShengzhen
Copy link

LenaShengzhen commented May 16, 2023

Exercise 6.24: Explain the behavior of the following function. If there are problems in
the code, explain what they are and how you might fix them.

void print(const int ia[10])
{
      for (size_t i = 0; i != 10; ++i)
      cout << ia[i] << endl;
}

这个代码可以成功运行, 为什么说它不能成功运行?

@hjx950319
Copy link

我也觉得,提出同款疑问

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

2 participants