Using the equality operator == to compare two strings for equality in C [duplicate]

Because argv[1] (for instance) is actually a pointer to the string. So all you’re doing is comparing pointers.

Leave a Comment