Fill in the blanks to calculate the sum of all elements in the array "arr" using an enhanced for loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Fill in the blanks to calculate the sum of all elements in the array "arr" using an enhanced for loop

int res=0; _(int el_ arr) { res +=_ ; } who know this answer _

10th May 2017, 10:36 AM
Nurul Ain
Nurul Ain - avatar
2 Answers
+ 1
for : el
10th May 2017, 10:47 AM
Meharban Singh
Meharban Singh - avatar
+ 1
15th Nov 2020, 9:38 AM
krishnaa
krishnaa - avatar