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) Which of the following function sets first n characters of a string to a given character?
2) What will be the output of the program ? #include<stdio.h>
int main()
{
int i;
char a[] = "\0";
if(printf("%s", a))
printf("empty string\n");
else
printf("not empty string \n");
return 0;
}
3) Which is more appropriate for reading in multi-word string?
4) What will be the output of the program ? #include<stdio.h>
int main()
{
printf("Study 2 Online", " C Language MCQ\n");
return 0;
}
5) What is the output of this C code?
#include <stdio.h>
int main()
{
char *str = "hello, world\n";
printf("%d", strlen(str));
}