If the two strings are identical, then strcmp() function returns

Home | Discussion Forum

If the two strings are identical, then strcmp() function returns

View More Related Question

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));
}

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.