1.

What will strcmp() function do?(a) compares the first n characters of the object(b) compares the string(c) undefined function(d) copies the stringThis question was addressed to me by my school teacher while I was bunking the class.I need to ask this question from String Operations topic in portion String Operations in C of C

Answer»

Right ANSWER is (b) compares the STRING

Easiest EXPLANATION - The strcmp() function compares the string s1 to the string S2.

int strcmp(CONST char *s1,const char *s2);



Discussion

No Comment Found

Related InterviewSolutions