1.7 Which is the correct option for the following code?
main() { char *str1="hello", *str2="hello";
if(str1==str2)
printf("equal");
else
printf("unequal"); }
A) Output is equal
B) Syntax error
C) Error because two pointers cannot be compared
D) Output is unequal
Which is the correct option for the following code?
July 6, 2021 in C and CPP