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
What will be the output of the following program?
in C and CPP
in C and CPP
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