current position:Home>What do these two for loops mean

What do these two for loops mean

2022-02-03 00:49:30 CSDN Q & A

img




Refer to the answer 1:

first for() , hold p = dstStr , Give Way p Point to string b The first address , then dstStr++, Let the pointer dstStr Point to string b At the end of .
the second for(), The pointer dstStr Now point to b The tail , hold srcStr The string pointed to a Copy from header to b Tail of .




Refer to the answer 2:



Refer to the answer 3:

Loop pointer




Refer to the answer 4:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030049284478.html

Random recommended