What is the difference between memcpy() and strcpy() functions in C?

C Programming Language >   String functions in C >   All String Functions  

Short Question

2877


Answer:

  • memcpy() function is used to copy a specified number of bytes from one memory to another. Whereas, strcpy() function is used to copy the contents of one string into another string.
  • memcpy() function acts on memory rather than value. Whereas, strcpy() function acts on value rather than memory.


This Particular section is dedicated to Question & Answer only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.