What will the given C code do?
Posted: Wed Jul 13, 2022 7:56 pm
int memcmp(const void *str1, const void *str2, size_t n)
a) compares the first n bytes of str1 and str2
b) copies the first n bytes of str1 to str2
c) copies the first n bytes of str2 to str1
d) invalid function
a) compares the first n bytes of str1 and str2
b) copies the first n bytes of str1 to str2
c) copies the first n bytes of str2 to str1
d) invalid function