Home > Back-end >  C ask bosses
C ask bosses

Time:09-24

This step is to do, not quite understand

CodePudding user response:

Run the knew where to write wrong, should be!='\ 0'

CodePudding user response:


should be while (s1 + s2 + + +=* (*).='\ 0'); One less '! '
For character copy, s1, s2, respectively of the two strings Pointers, * s1 + s2 + + +=* said he will value is copied to the * * s2 s1, and s2 and s1 their backward one byte units, when the * s2 values are not for '\ 0' in the end of the string, circulation has been performed for the assignment operation, no side end of the cycle, the end of the assignment,

CodePudding user response:

String last default to \ 0 at the end, it is copied to \ 0
  • Related