C Programming :: String - Discussion
Home > C Programming > String > MCQs Questions Discussion
11 / 26
What is the output of the following C Program?
#include<stdio.h>
void main()
{
char str1[] = {'s','o','m','e'};
char str2[] = {'s','o','m','e','\0'};
while (strcmp(str1,str2))
printf("Strings are not equal\n");
}
#include<stdio.h>
void main()
{
char str1[] = {'s','o','m','e'};
char str2[] = {'s','o','m','e','\0'};
while (strcmp(str1,str2))
printf("Strings are not equal\n");
}
ANo Output No Error
BString are not equal
Cstack overflow
DNone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!