SyntaxFix
Write A Post
Hire A Developer
Questions
Change = to == i.e if (strcmp("hello", "hello") == 0)
=
==
if (strcmp("hello", "hello") == 0)
You want to compare the result of strcmp() to 0. So you need ==. Assigning it to 0 won't work because rvalues cannot be assigned to.
strcmp()