fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int array [] = {1,2,3,4,5};
  5. for(int index = sizeof(array)/sizeof(array[0]); index >= 0; index--)
  6. {
  7. printf("%d, ",array[index]);
  8. }
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 5556KB
stdin
Standard input is empty
stdout
22046, 5, 4, 3, 2, 1,