C Language MCQ - English
How will you print \n on the screen?
Home | Discussion ForumHow 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) What will be the output of the program ? #include<stdio.h>
int main()
{
printf("Study 2 Online", " C Language MCQ\n");
return 0;
}
3) 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");
}
4) What will be the output of the program ? #include<stdio.h>
#include<string.h>
int main()
{
char str[] = "Study 2 Online\0 C Language MCQ\0";
printf("%s\n", str);
return 0;
}
5) If the two strings are identical, then strcmp() function returns