All Questions
1 question
0
votes
1
answer
43
views
pset3, vote(); direct comparison failing but strcmp() working?
Why is
if (strcmp(candidates[i], name) == 0)
working, but:
if (name == candidates[i])
not working? I have also tried with casting string on both sides, but doesn't work.
I have checked via printf, ...