Programming MCQS - QUESTION DETAILS

Which function is used to compare two strings in C?
A. strcmp()
B. strcompare()
C. compare()
D. stringcmp()

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

Similar Questions

What is the purpose of the 'do-while' loop in C?






Which of the following is not a primitive data type in Java?






What is the purpose of the 'instanceof' operator in Java?






What is the purpose of the 'malloc' function in C?






Which operator is used for object instantiation in Java?






What is the purpose of the 'finally' block in Java?






How is an abstract class different from an interface in Java?






Which keyword is used to prevent method overriding in Java?






How do you declare a constant pointer in C?






What is the role of the 'super' keyword in Java?