McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2026
→
Computer Science Engineering (CSE)
→
Data Structure and Algorithms (DSA)
→
If two string are identical then strcmp(...
Q.
If two string are identical then strcmp() function returns____
A.
-1
B.
1
C.
0
D.
none of these
Answer» C. 0
1.2k
0
Do you find this helpful?
12
View all MCQs in
Data Structure and Algorithms (DSA)
Discussion
No comments yet
Login to comment
Related MCQs
The function strcmp(s1,s2)will return -1 if____
Following function is used to find the first occurrence of given string in another string
String with zero characters is called ________ string.
If string 1 = John, and string 2 = Rivers are merged, the process is called ----
consider the function f defined here: struct item { int data; struct item * next; }; int f (struct item *p) { return((p==NULL) ||((p->next==NULL)||(p->data<=p->next->data) && (p->next))); } For a given linked list p, the function f returns 1 if and only if
Which function returns a void pointers?
The function that allocates requested size of bytes and returns a pointer to the first byte of the allocated space is
If a function is declared as void fn(int *p), then which of the following statements is valid to call function fn?
Groups of consecutive elements in a string, such as words, phrases and sentences are called ________.
The number of characters in a string is called its ______.