Vidyalelo
C Programming · Q202

File Input Output

Programming · C Programming · question 202

Q202

What will be the output of the following C code? #include #include int main() char *str = "hello, world"; char *str1 = "hello, world"; if (strcmp(str, str1)) printf("equal"); else printf("unequal");

A.
equal
B.
unequal
Answer
C.
Compilation error
D.
Depends on the compiler

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board