int main (int argc, **argv) { if (argv[1] == \"-hello\") printf(\"True\\n\"); else printf(\"False\\n\"); }
Because argv[1] (for instance) is actually a pointer to the string. So all you're doing is comparing pointers.
argv[1]