Question
Select the output for the following set of code :Â static void Main(string[] args)Â {Â Â Â int i = 0;Â Â Â if (i == 0)Â Â Â {Â Â Â Â Â goto label;Â Â Â }Â Â Â label: Console.WriteLine("HI...");Â Â Â Console.ReadLine();Â }
Answer: Option A
Was this answer helpful ?
for i = 0 ,if condition is satisfied as (i == 0).So,label statement is printed.
Output : Hi
Was this answer helpful ?
More Questions on This Topic :
Question 4. Correct syntax for do while loop is : ....
Submit Solution