filmov
tv
C Interview Question: Difference between memcpy and strcpy

Показать описание
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
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