Lessons
C++ · Algorithm Foundations · 31. Passing Arrays to Functions
step 1 of 7
Hand over a list
A function can take a whole vector. Inside it, v is the list you handed over.
Mission
Put 10 in the list too, then RUN.
PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
← press me!
Press RUN to see what this program does.