Vidyalelo
C Programming · Q86

Arrays and Strings

Programming · C Programming · question 86

Q86

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

A.
int strncmp(ch, s, n)
Answer
B.
int strcmp(ch, s)
C.
int strncmp(s, ch, n)
D.
int strcmp(s, ch)

Answer: Option A

Solution

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