Tell us the difference between the while and for loop. Provide a .net syntax for both loops?
Answer / Sunil Dutt
"While loop is a control structure that repeats a block of code as long as a specified condition is true, whereas a For loop is used to repeat a block of code a specific number of times. Syntax: While (condition) {n// Code to be executed n}nSyntax for For loop in C#: for(initialization; condition; increment/decrement) {n// Code to be executedn}
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the concept of inheritance in .net?
What is 'Common Type System' (CTS) in .NET?
What is clr in .net?
Is .net core the future?
i have an array of 10 objects whose values are from 1-10 randomly inserted. i have deleted one array object. tell me what is that value? write the logic of it.
2 Answers Deloitte, Srp Khanij,
Please explain what do the terms “boxing” and “unboxing” mean?
Explain the features that are common to all .Net languages.
diff between forms authentication and windows authentication?
What are good ADO.NET object(s) to replace the ADO Recordset object.
Difference between value type & reference types ?
What is the use of Treeview control?
What are multicast delegates?