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