Question { Wipro, 32084 }
What is the difference between for & foreach, exec &
system?
Answer
The For and Foreach loop works quite same......but
Foreach loop is best way to access dynamic arrays.If we don't know the size of the array then we can't mention the range for the "FOR LOOP" in this case for loop is best