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