MCQOPTIONS
Saved Bookmarks
| 1. |
Select the output for the following set of Code : static void Main(string[] args) { int a = -1; int b = -1; if (Convert.ToBoolean (++a = ++b)) Console.WriteLine("a"); else Console.WriteLine("b"); Console.ReadLine(); } |
| A. | A |
| B. | B |
| C. | Compile time error |
| D. | Code execute successfully with no output |
| Answer» D. Code execute successfully with no output | |