Q. Which function is used to compare two strings?

  • (A) strcmp()
  • (B) strcomp()
  • (C) stringcompare()
  • (D) compare()
πŸ’¬ Discuss
βœ… Correct Answer: (A) strcmp()
Explanation: strcmp() compares two strings and returns 0 if equal.
Explanation by: Mr. Dubey
strcmp() compares two strings and returns 0 if equal.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
76
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate