csev / cc4e

C Programming for Everybody
https://www.cc4e.com/
Other
293 stars 92 forks source link

In example c_101_01, has an extra = #48

Closed guaifi closed 1 year ago

guaifi commented 1 year ago

if you compare s++ == t++ you will never asign t to s. The == should be =

strcpy(s, t) / copy t to s; pointer version 3 - corrected/ char s, t; { while (s++ = t++) ; }

csev commented 1 year ago

Thanks- merged and closed.