Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
What will be the output of the below C# code?
protected void btn_click(object sender,eventargs e)
int cnt = 50;
if (cnt == 50)
cnt = 10;
on 12/2/2014 | Category:
C# Interview questions
| Views: 2458 |
Select from following answers:
50 10 50
50 10 10
10 10 10
Output will be 50 10 10.
First it will print 50,then check if cnt is equal to 50,then set cnt to 10,then print 10,then after if condition,it will again print 10.
Show Correct Answer
Many Interviews |
< Previous :
Ho to Retrieving Table Row Count without using Cou ...
Next > :
Which statement is True about Stored Procedures in ...
Comments or Responses
Login to post response
More Interview Questions by vishalneeraj-24503
Which statement is True about Stored Procedures in Sql Server?
Which statement is False about User defined function in Sql Server?
Which statement is False about Stored Procedures in Sql Server?
Which statement is True about Triggers in Sql Server?
What will be the output of the below C# code? protected void btn_clic ...
Which Process'method is used to Stop any processs which are being ...
What are the ways to Exit a method without Exiting a program.
Which way is used to check whether Textbox or any string value is empt ...
Latest Interview Questions
How to implement multiple inhertiance in C#
How to attach mouse up event to an element?
How to attach mouse move event to an element ?
How to attach mouse leave event to an element?
How to attach mouse enter event to an element in jquery ?
How to attach mouse down event to an element in jquery ?
How to attach load event to an element in jquery ?
In jquery how to attach key up event to an element?