fork(3) download
  1. #include <stdio.h>
  2.  
  3. void main()
  4. {
  5. char arr[16];
  6. int i;
  7.  
  8.  
  9. i = 0;
  10. while (i++ < 16)
  11. {
  12. printf("-");
  13. }
  14. printf("\n");
  15.  
  16. // Вывод:
  17. // ----------------
  18.  
  19.  
  20.  
  21. i = 0;
  22. while (i++ < 16)
  23. {
  24. arr[i - 1] = '-';
  25. }
  26. printf("%s\n", arr);
  27.  
  28. // Вывод:
  29. // ----------------╕ °v
  30. }
  31.  
Runtime error #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
----------------
----------------