fork download
  1. #include <stdio.h>
  2.  
  3. void my_function(int arr_end,double arr[20]) {
  4. double arr_new[arr_end+1];
  5. int i;
  6. for(i=0;i<=arr_end;i++){
  7. arr_new[i] = arr[i];
  8. }
  9. // Now I can do what I want with arr_new
  10. }
  11.  
  12. int main(void) {
  13. // your code goes here
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 2152KB
stdin
Standard input is empty
stdout
Standard output is empty