fork download
  1. #include <stdio.h>
  2.  
  3. int main (int argc, char *argv[])
  4. {
  5. static void *test;
  6. static int howManyMember;
  7. if (argv) {
  8. printf("How many members are they?");
  9. scanf("%d", &howManyMember);
  10. if (howManyMember > 0) {
  11. int theListOfNumber[howManyMember];
  12. test = theListOfNumber;
  13. main(0, 0);
  14. int x;
  15. for (x = 0; x < howManyMember; ++x) {
  16. printf("got: %d\n", theListOfNumber[x]);
  17. }
  18. }
  19. } else if (argc < howManyMember) {
  20. int *theListOfNumber = test;
  21. scanf("%d", theListOfNumber + argc);
  22. main(argc+1, 0);
  23. }
  24. return 0;
  25. }
Success #stdin #stdout 0s 2296KB
stdin
7
11 12 13 14 15 16 17
stdout
How many members are they?got: 11
got: 12
got: 13
got: 14
got: 15
got: 16
got: 17