Is the given looping statement fundamentally correct? while(1);
Answers
Answered by
1
Answer:
The answer of the following question is False.
Explanation:
The given looping statement is wrong fundamentally.
While is looping statement which is used for applying condition in the program.
syntax for while:
While( condition)
{
statement(S).....
...............
}
In the question While(1), 1 is not the valid condition that will not execute the loop and show the error.
Example:
While( n/2==0)
{
cout<< n is even;
}
In this example, N/2 is a valid condition.
Similar questions