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