The foreach loop as the name suggests is used to access each and every element of an array. Syntax: foreach(<data type> <variable name> in <array name>) Example: foreach(int a in arr)Question; Program: Video: Read more
No comments:
Post a Comment