C# Programming Questions and Answers
What will be the output of the following snippet of code?
class number
{
int length =50;
publicint number1
{
get
{
return length;
}
set
{
length =value;
}
}
}
class Program
{
publicstaticvoid Main(string[] args)
{
number p =new number();
p.number1= p.number1+40;
int k = p.number1*3/9;
Console.WriteLine(k);
Console.ReadLine();
}
}
Answer: Option (C)