C- strcpy function
I am trying to understand the following question and its answer but to no
avail.
8. What will be the value of string str after the following statements
have been executed?
strcpy(str,"tire-bouchon");
strcpy(&str[4],"d-or-wi");
strcpy(str,"red?");
The answer given is tired-or-wired?
No comments:
Post a Comment