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