fork download
  1. #include<stdio.h>
  2.  
  3. void myFunction(int *myNumbers) {
  4. for (int i = 0; i < 5; i++) {
  5. printf("%d\n", myNumbers[i]);
  6. }
  7. }
  8.  
  9. int main() {
  10. int myNumbers[5] = {10, 20, 30, 40, 50};
  11. myFunction(myNumbers);
  12. return 0;
  13. }
Success #stdin #stdout 0s 5296KB
stdin
Standard input is empty
stdout
10
20
30
40
50