C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

Differentiate between the while and for loop in C#.

0 votes
59 views
asked Feb 24, 2014 by john Guru (27,140 points)

1 Answer

0 votes
The while and for loops are used to execute those units of code that need to be repeatedly executed, unless the result of the specified condition evaluates to false. The only difference between the two is in their syntax. The for loop is distinguished by setting an explicit loop variable.
 
answered Feb 24, 2014 by sara Guru (24,570 points)

Related questions

0 votes
1 answer 383 views
383 views asked Nov 16, 2011 by shivani Sr Member (1,090 points)
0 votes
1 answer 137 views
137 views asked Oct 15, 2011 by shivani Sr Member (1,090 points)
0 votes
1 answer 23 views
23 views asked Feb 24, 2014 by john Guru (27,140 points)
0 votes
1 answer 18 views
18 views asked Feb 24, 2014 by john Guru (27,140 points)
0 votes
1 answer 73 views
73 views asked Oct 15, 2011 by arnav Sr Member (1,250 points)
...