1.

Which among the following is Copying function?(a) memcpy()(b) strcopy()(c) memcopy()(d) strxcpy()The question was posed to me in an interview.The question is from String Operations topic in section String Operations in C of C

Answer»

The CORRECT CHOICE is (a) memcpy()

The explanation is: The memcpy() function is used tocopy N characters from the object.

The code is void *memcpy(void *s1,CONST void *s2, size_t n).



Discussion

No Comment Found

Related InterviewSolutions