fork download
  1. #include <stdio.h>
  2. int main ( )
  3. {
  4.  
  5. int values [5] = {2,4,6};
  6.  
  7. int i;
  8.  
  9. for (i=0; i < 5; ++i)
  10. {
  11. printf("values [%i] = %i\n", i, values [i]);
  12. }
  13.  
  14. return (0);
  15.  
  16. }
Success #stdin #stdout 0s 5264KB
stdin
54
4
2
stdout
values [0] = 2
values [1] = 4
values [2] = 6
values [3] = 0
values [4] = 0