Discussion :: C#.Net MCQs
-
What will be the output of following code snippet?#define piusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication13{class Program{static void Main(string[] args){#if (!pi)Console.WriteLine("i");#elseConsole.WriteLine("pi not define");#endifConsole.WriteLine("ok");Console.ReadLine();}}}
Answer : Option B
Explanation :
Be The First To Comment