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