Which function is used to compare two strings in C?

Which function is used to compare two strings in C?
A . strncmp()
B . strcmp()
C . stricmp()
D . strcasecmp()

Answer: B

Explanation:

strcmp() is used to compare two strings in C.

Latest CLP-12-01 Practice Questions with 160 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments