我的老师让我解答一个问题,预测以下代码的输出。
#include <stdio.h>
int main()
{
int i = 0, j = 0;
printf("Output is : ");
while (i < 5, j < 10) // Doubt: how does while accept 2 arguments?? and how it works??
{
i++;
j++;
}
printf("%d, %d\n", i, j);
}
我原本以为是语法错误,但当我尝试运行时,却输出了结果。
Output is : 10, 10
但是怎么做呢?有人可以解释一下吗?
但如果我删除第一个printf语句printf("Output is : ");
并运行它,我的杀毒软件会给我一个警报,说检测到了一个Trojan
。
但是它是如何成为一个Trojan
的呢?
int x = 1, y = 2; y, x = y + 1, x + 1; // x is still 1, y is now 3
- quantdevprintf
语句并运行它,我的杀毒软件会弹出警报,检测到了一个特洛伊木马
。 - Shreyash S Sarnayak