MCQOPTIONS
Saved Bookmarks
| 1. |
Select the output for the following set of code : static void Main(string[] args) { int i; for (i = 0; ; ) { Console.WriteLine("hello"); } Console.ReadLine(); } |
| A. | No output |
| B. | Hello |
| C. | Hello printed infinite times |
| D. | Code will give error as expression syntax |
| Answer» D. Code will give error as expression syntax | |