Vidyalelo
C Programming · Q119

Arrays and Strings

Programming · C Programming · question 119

Q119

What will the given C code do? int memcmp(const void *str1, const void *str2, size_t n)

A.
compares the first n bytes of str1 and str2
Answer
B.
copies the first n bytes of str1 to str2
C.
copies the first n bytes of str2 to str1
D.
invalid function

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board