Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只是好奇地去做它并找到结果,但我真的很震惊......
实际上,
当我们这样做时:
for(i=0; 0; i++) printf("hello");
它打印你好。..它不应该。
如果这样做:
int a=0; for(i=0;a;i++) printf("hello");
它不打印你好。..
虽然预期的行为显示在 if-else 或 while 循环中.. 谁能解释一下?