fork download
  1. #include <stdio.h>
  2.  
  3. void five_init();
  4. void six_init();
  5. void ausgabe(int my_array[]);
  6.  
  7. int main(void) {
  8. five_init();
  9. six_init();
  10.  
  11. return 0;
  12. }
  13.  
  14. void five_init()
  15. {
  16. int n_array[5] = {2,4,8,16,32};
  17.  
  18. ausgabe(n_array);
  19. }
  20.  
  21. void six_init()
  22. {
  23. int n_array[6] = {2,4,8,16,32,64};
  24. ausgabe(n_array);
  25. }
  26.  
  27. void ausgabe(int my_array[])
  28. {
  29. int index = 0;
  30. for(index = 0; index<5; index++)
  31. {
  32. printf("%d\n", my_array[index]);
  33.  
  34. }
  35.  
  36. return;
  37. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
2
4
8
16
32
2
4
8
16
32