Which of the following function is more appropriate for reading in a multi-word

Home | Discussion Forum
Taiyari24Hour

Which of the following function is more appropriate for reading in a multi-word string?



View More Related Question

1) What will be the output of the program ?

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

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

3) What is the output of this C code?

#include <stdio.h>
int main()
{
char *str = "hello, world\n";
printf("%d", strlen(str));
}

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

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

UP Gk Online Test

taiyari24hour.com

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