fork download
  1. #include <stdio.h>
  2. int* merge(int* Input1,int* Input2){
  3. int result[20]={3,5,7,90,52,10};
  4. return &result;
  5. }
  6. int main(void) {
  7. int Input1[5], Input2[5],Input3[20],count=0;
  8. while(count<5){
  9. scanf("%d",&Input1[count]);
  10. count++;
  11. }
  12. count=0;
  13. while(count<5){
  14. scanf("%d",&Input2[count]);
  15. count++;
  16. }
  17. count=0;
  18. Input3[0]=merge(Input1,Input2);
  19. while(count<5){
  20. printf("%d ",Input3[count]);
  21. count++;
  22. }
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0s 4552KB
stdin
1 2 3 4 5 6 7 8 9 0
stdout
0 0 1152302735 32764 1152302734