For an assignment, I am required to have command line arguments for my C program. I\'ve used argc/argv before (in C++) without trouble, but I\'m unsure if C style strings ar
You can't compare c-strings like that. Use strcmp (reference here).
Because c-strings are actually pointers, the == operator compares the address of the first character which will never be equal in this case.