MCQOPTIONS
Saved Bookmarks
| 1. |
Select the output for the following set of code: static void Main(string[] args) { int i = 5; for (; Convert.ToBoolean(Convert.ToInt32(i)); Console.WriteLine(i--)) ; Console.ReadLine(); } |
| A. | 4 3 2 1 |
| B. | 3 2 1 |
| C. | 5 4 3 2 1 |
| D. | 2 1 |
| Answer» D. 2 1 | |