Ask your own question, for FREE!
Mathematics 21 Online
OpenStudy (christos):

C++ , C-Strings ! This is my code here: http://pastebin.com/mP6QvK30 Why the function strcpy(S1,S2) gives me error ? this is my first time on C-Strings

OpenStudy (anonymous):

I think u use this fall because ...

OpenStudy (christos):

because?

OpenStudy (christos):

That's what I am trying to solve : http://screencast.com/t/4RweIdaG

OpenStudy (anonymous):

No ! I ll check it :)

OpenStudy (phi):

I think strings have a null (0 ) at the end. if you allocate 10 bytes, you can only fill in 9, leaving one byte for the null

OpenStudy (phi):

so allocate more bytes for your strings.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!