MCQ Answer

If the two strings are identical, then strcmp() function returns

If the two strings are identical, then strcmp() function returns

यदि दो तार समान हैं, तो strcmp () फ़ंक्शन रिटर्न करता है
Topic : Arrays

A. -1

B. 1

C. 0

D. Yes




Correct Answer is :

C. 0



Explanation
strcmp(const char *s1, const char*s2); The strcmp return an int value that is if s1 < s2 returns a value < 0 if s1 == s2 returns 0 if s1 > s2 returns a value > 0
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad