Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

What is the difference between memcpy and strcpy? 
The key difference between memcpy and strcpy are given below:

1.memcpy is used to copy the NULL bytes even if size is not mentioned,Where as strcpy is stopped copying when it encounters NULL bytes.
2.memcpy can copy null bytes also if the size of memory is given strcpy stops after the first null byte.