Answer to Question #326791 in C# for Timmy

Question #326791

What is the output of the following program

class TestApp {

public static void main(String[] args) {

for (int index = 0; 1; index++) {

System.out.println("Welcome");

break;

}

}

}


Select one:

A. Welcome

B. Type mismatch error

C. Run infinite-times

D. Welcome Welcome



1
Expert's answer
2022-04-12T13:27:23-0400

B. Type mismatch error

for(initializer; condition; iterator)

The condition is a boolean expression


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS