Which of the following function sets first n characters of a string to a given c

Home | Discussion Forum
Taiyari24Hour

Which of the following function sets first n characters of a string to a given character?



View More Related Question

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

3) What will be the output of the program ?

  #include<stdio.h>
int main()
{
printf("Study 2 Online", " C Language MCQ\n");
return 0;
}

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

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

UP Gk Online Test

taiyari24hour.com

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