MCPcopy Create free account
hub / github.com/chaharnishant11/CodeIn10DSA / printArray

Function printArray

C++/Code/array.cpp:5–14  ·  view source on GitHub ↗

Passing in a function

Source from the content-addressed store, hash-verified

3
4//Passing in a function
5void printArray(int arr[], int size){ //Array is passed by reference by default
6
7 arr[2]=179;
8
9 for(int i=0;i<size;i++){
10 cout<<arr[i]<<" ";
11 }
12
13 arr[1] = 41;
14}
15
16int main(){
17

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected