What function is used to copy a string in C?

What function is used to copy a string in C?
A . strcpy()
B . strcat()
C . memcpy()
D . strncpy()

Answer: A

Explanation:

strcpy() is used to copy a string in C.

Latest CLP-12-01 Practice Questions with 160 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments