fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n[5] = { 0 };
  5. for (int i = 0; i < 5; i++) printf("%d\n", n[i]);
  6. for (int i = 0; i < 5; i++) n[i] = i + 1;
  7. for (int i = 0; i < 5; i++) printf("%d\n", n[i]);
  8. }
  9.  
  10. //https://pt.stackoverflow.com/q/107506/101
Success #stdin #stdout 0s 4408KB
stdin
Standard input is empty
stdout
0
0
0
0
0
1
2
3
4
5