fork download
  1. #include <stdio.h>
  2.  
  3. void fun1 (int a [], int length)
  4. {
  5. for (int i = 0; i<length; i++)
  6. a[i] = a[i] =a[i];
  7. length = 2 * length;
  8. return;
  9. }
  10.  
  11. int main()
  12. {
  13. int b[5] = {2, 3, 4, 5, 6};
  14. fun1 (b, b[1]);
  15. for (int i = 0; i<5; i++)
  16. printf("%d ", b[i]);
  17. return 0;
  18. }
Success #stdin #stdout 0s 5460KB
stdin
Standard input is empty
stdout
2 3 4 5 6