fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int array[] = {23,34,12,17,204,99,16};
  6. #define TOTAL_ELEMENTS (sizeof(array) / sizeof(array[0]))
  7.  
  8. int d;
  9. for(d = 0; d < TOTAL_ELEMENTS; ++d)
  10. {
  11. printf("%d\n", array[d]);
  12. }
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
23
34
12
17
204
99
16