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