C Interview Question: Difference between memcpy and strcpy

preview_player
Показать описание
This video lectures covers a very common interview question related to copying data.
Difference between strcpy and memcpy.

strcpy copies till the first null character, memcpy copies n number of bytes, it does not look for what is the content in those bytes.

memcpy can be used to copy any type of data where as strcpy is used to copy only strings.

#cprogramming #cinterviewquestions #interviewquestions
Рекомендации по теме
welcome to shbcf.ru