C Language MCQ - English
If the two strings are identical, then strcmp() function returns
Home | Discussion ForumIf the two strings are identical, then strcmp() function returns
Answer : C
View More Related Question
1) What will be the output of the following program?
void main()
{
char str1[] = "abcd";
char str2[] = "abcd";
if(str1==str2)
printf("Equal");
else
printf("Unequal");
}
2) What is the output of this C code?
#include <stdio.h>
int main()
{
char *str = "hello";
char str1[5];
strcpy(str, str1);
printf("%s", str1);
}
3) Which of the following function is more appropriate for reading in a multi-word string?
4) Which of the following function is used to find the first occurrence of a given string in another string?
5) Which is more appropriate for reading in multi-word string?