How For is Different from Foreach Loop in C#

This is very basic question asked in many interviews: The for loop executes a statement or a block of statements repeatedly until a specified expression evaluates to false. There is need to specify the loop bounds (minimum or maximum). Following is a code example of a simple for loop that starts 0 till <= 5. … Read more