Function to copy string - strcpy implementation | GeeksforGeeks

preview_player
Показать описание

This video is contributed by Anant Patni.

Please Like, Comment and Share the Video among your friends.

Install our Android App:

If you wish, translate into local language and help us reach millions of other geeks:

Follow us on Facebook:

And Twitter:

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

please also make videos in c#, java and Python

usama
Автор

U wrote s2[i]='\O' but if we put it in the for loop then it will put null character at the s2[0] position

atishayjain
Автор

what is the use of s2[i] = '\0'; this line when s1=0 then loop is not working,

abhagupta
Автор

Why would anyone implement such a function?
Either use std::string or at least the c library functions that do some kind of bounds checking. Stop teaching unsafe code!

muadrico
visit shbcf.ru