Page 1 of 1

Which among the given options compares atmost n characters of string ch to string s?

Posted: Wed Jul 13, 2022 7:55 pm
by answerhappygod
a) int strncmp(ch, s, n)
b) int strcmp(ch, s)
c) int strncmp(s, ch, n)
d) int strcmp(s, ch)