Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
Which keyword is used to exit from for loop in C#?
on 12/1/2014 | Category:
Visual Studio Interview questions
| Views: 1095 |
Select from following answers:
Both a and b.
All of the above.
Break and Return both keywords are used to Exit the For Loop but there is a difference between Break and Return keyword.
Break is used to exit only For Loop where as Return is used to exit the whole programe or method.
After breaking the for loop,even cursor will go to the next statement and execute them but in case of returning,no statement will be executed.
Show Correct Answer
Many Interviews |
< Previous :
Which keyword is used to exit from for loop in VB. ...
Next > :
Which attribute is used for making method as obsol ...
Comments or Responses
Login to post response
More Interview Questions by vishalneeraj-24503
Which attribute is used for making method as obsolete?
How to add Meta Description on web page?
How to add Meta Keywords on web page?
How to Find No of Days in Month?
How to Disable the Autocommit Mode in Sql Server?
What is the used of Novalidate attribute in Form Tag.
How to keep Page Footer fixed for any layout?
How to design a Rounded Button for all the Browsers?
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?