+ 3
Ash You're saying like "cs2.title=cs1.title;"? CS2.title is of type const char pointer. Doing so would mean CS2.title's address(which is constant) should become cs2.title's address. We only wanted the data in those addresses to be copied, so we use that function to do it This is what it is, inside the beautiful syntaxes, modern languages hide it, so you might not have noticed it This answer is the same one I've posted in your comment on https://www.sololearn.com/learning/2942/
23rd Jan 2022, 12:01 PM
Rishi
Rishi - avatar