You can’t compare strings in C with == , because the C compiler does not really have a clue about strings beyond a string-literal. Show activity on this post. In C because, in most contexts, an array “decays into a pointer to its first element”.
Read more