Both are pointers to Strings pointing to the same first element i.e. "a" , It will print 97 , the ASCII value to "a" for both and comparison will result in TRUE . If we change the first element both the values will not match and output will be "not equal".
#include<stdio.h>
#include<conio.h>
main()
{
printf("Value of %d \n ", *"a"); // Will print 97
printf("Value of %d \n", *"abcd"); // Will print 97
if(*"a"==*"abcd") // TRUE
printf("strings are equal");
else
printf("not equal");
getch();
return 1 ;
}
O/P :
Value of 97
Value of 97
strings are equal