maheswar reddy


{ City } hyderabad
< Country > india
* Profession * student
User No # 65922
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 5
Users Marked my Answers as Wrong # 2
Questions / { maheswar reddy }
Questions Answers Category Views Company eMail




Answers / { maheswar reddy }

Question { Wipro, 31998 }

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

Is This Answer Correct ?    5 Yes 2 No