In C, what is below?
if ("" == "") { printf("Empty strings are equal\n"); }
I have a compiler on hand that tells me that "" really equal to "" . But is this equality guaranteed?
Change I understand very well how pointer comparison and string comparison work. C. I ask what behavior, if any, is specified in the C standard for string compilation time constant. I am convinced that the strings are not guaranteed to be equal, but in practice they will usually be equal, since all constant empty strings will be interned to the same address. But I want to know if anyone can give the final link
source share