Q98
What will be the output of the following C# code? class number int length = 50; public int number1 get return length; set length = value; class Program public static void Main(string[] args) number p = new number(); p.number1 = p.number1 + 40; int k = p.number1 * 3 / 9; Console.WriteLine(k); Console.ReadLine();
A.
0
B.
180
C.
30
AnswerD.
Compile time error
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board