C Language MCQ - English
How will you print \n on the screen?
Answer : D
View More Related Question
1) What is the output of this C code?
#include <stdio.h>
int main()
{
char str[11] = "hello";
char *str1 = "world";
strcat(str, str1);
printf("%s %d", str, str[10]);
}
2) How will you print \n on the screen?
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 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;
}
5) Which is more appropriate for reading in multi-word string?