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