Teaching Rajasthan Basic Computer Instructor 2021 Mock Test Programming and Data Structure Programming in C
How many times the given code block will be executed?
int x = 5;
if (x = 1)
{
x++;
}
1
once
2
Never
3
Five times
4
Infinitely many times
How many times the given code block will be executed?
int x = 5;
if (x = 1)
{
x++;
}