My ma'am gave me one question to solve. To predict the output of the following code.
#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);
}
I thought it was a syntax error. But when I tried to run, it gave me output.
Output is : 10, 10
But How? Can anyone explain?
But if I remove the first printf statement printf("Output is : ");
and run it, my antivirus give me a alert that a Trojan
is detected.
But how it becomes a Trojan
?