fork download
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. void foo(int arr[], int n) {
  4. arr[0] = 1;
  5. }
  6. int main() {
  7. int myArray[5] = {0,0,0,0,0};
  8. foo(myArray,5);
  9. printf("%d",myArray[0]);
  10. return 0;
  11. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
1