Can string be compared with == operator? I know that they can be compared using strcmp() function. But this snippet confused me a lot
#include <stdio.h>
#include <stdlib.h>
int main()
{
char str1[]="Good Morning";
char str2[]="Good Morning";
if(str1 == str2)
printf("Equal");
else
printf("Not Equal");
return 0;
}
The output of this program in "Not Equal". Can anyone please explain the output