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


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.

Random recommended