What will be the output of the following program?

1.2 What will be the output of the following program?
Main()
{ int x = 5;
While ( x = = 1)
x = x -1;
printf ( “ %d\n”, x);
}
A) 5
B) 4
C) 0
D) syntax error

Leave a Reply