fork(1) download
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. void set() {
  5. char str[12] = "O rato roeu";
  6. printf("%s\n", str);
  7. }
  8.  
  9. void show() {
  10. int x = 0;
  11. char vet[12];
  12. // printf("vet = '%s'\nx = %d", vet, x);
  13. printf("vet = '%s'\n", vet);
  14. printf("x = %d", x);
  15. }
  16.  
  17. int main() {
  18. set();
  19. show();
  20. return 0;
  21. }
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
O rato roeu
vet = 'r׿O rato r'
x = 0