Guest User

Untitled

a guest
Dec 9th, 2019
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void incrementElements(int A[], int n){
  2.     for(int i = 0; i < n; i++)
  3.         A[i]++;
  4. }
  5.  
  6. int main(){
  7.     int someArray[5] = {1, 2, 3, 4 ,5};
  8.     incrementElements(someArray, 5);
  9. }
RAW Paste Data