निम्नलिखित कार्यक्रम का आउटपुट क्या है?
What is the output of the following program ?
for( ; ; )
{
Statements
}
A
Error
B
Statements will run forever
C
This an infinite loop
D
Both (B) and (C)
Explanation
The given for loop has no condition, so it runs indefinitely. This creates an infinite loop, where the statements inside the loop will execute forever.
Output: (D) Both (B) and (C).
Correct Answer: D) Both (B) and (C)