We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tutorail02Answer中下列代码 链接 for (p++; ISDIGIT(*p); p++); 不是很理解, 第一眼看上去因为p每次循环都自增2次 感觉应该会隔位判断,但是debug了一下 用12345 发现*p 显示如下 2 3 4 5 并没有跳过2,4 有点不太理解
*p
2 3 4 5
The text was updated successfully, but these errors were encountered:
这里的第一个p++是跳过前一行已经做过判断的数字,第二个p++,是每次循环指针自增1,也就是循环开始后第一个p++不在参与循环的
p++
Sorry, something went wrong.
是的哦 第一个p只是定义 忘了 谢谢指点~
No branches or pull requests
Tutorail02Answer中下列代码 链接
for (p++; ISDIGIT(*p); p++);
不是很理解, 第一眼看上去因为p每次循环都自增2次 感觉应该会隔位判断,但是debug了一下 用12345 发现
*p
显示如下2 3 4 5
并没有跳过2,4 有点不太理解
The text was updated successfully, but these errors were encountered: