fork(1) download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. void outraFuncao(char *temp) {
  5. strcpy(temp, "11");
  6. printf("tempTest = %s\n", temp);
  7. }
  8.  
  9. int main() {
  10. char tempA[100] = "1111";
  11. outraFuncao(tempA);
  12. printf("tempTest = %s\n", tempA);
  13. strcpy(tempA, "22");
  14. printf("tempTest = %s\n", tempA);
  15. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
tempTest = 11
tempTest = 11
tempTest = 22