AmbitionBox
Discover Best Places to work in India
Discover best places to work
Compare & find best workplace
Bring your workplace to life
Highlight your company's perks
Read reviews for 6L+ companies
Rate your former or current company
Discover salaries for 8L+ companies
Calculate your take home salary
Check your market value
Help other jobseekers
Read interviews for 90K+ companies
Interviews questions for 1K+ colleges
Contribute your interview questions
C# Programming
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();
0
180
30
Compile time error
Answer: Option (C)
Join India’s largest community to research company culture
Are you a student or working professional?
Student/Never worked
I am a student/I have never worked
Working Professional
I am working/I have worked before
What are your preferred job locations?
Popular Cities
Other Cities
Follow your preferred designations/job profiles
Suggestions based on your job profile
vs
Similar Companies