What do you mean by for each loop?



What do you mean by for each loop?..

Answer / Deepti

The for-each loop (also known as the foreach loop) is a control structure used in programming languages to iterate over collections such as arrays, lists, and dictionaries. It allows you to access individual items in a collection without having to explicitly use an index or counter.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Is c sharp and c# are same?

1 Answers  


Can u list some style properties of List Box?

1 Answers   CGI,


What is class method c#?

1 Answers  


i have a table named login in mysql database containing (empid,fname,lname,mobno,emailid,usrname,usrpwd) i have 2 textboxes in which i enter my username and pwd..so based on what is entered in those textboxes it should retreive all other details of dat username in the remaining 6 textboxes..i want the code for this...

1 Answers   Royal Enfield,


Why are strings in c# immutable?

1 Answers  


What happens when thread sleep () method is called?

1 Answers  


What is the difference between firstordefault and singleordefault?

1 Answers  


What is wcf c#?

1 Answers  


Does c# support properties of array types?

1 Answers  


What is generic in c#?

1 Answers  


Is it possible to execute multiple catch block for a single try statement?

1 Answers   Siebel,


Can we override main method in c#?

1 Answers  


Categories