int main (int argc, **argv) { if (argv[1] == \"-hello\") printf(\"True\\n\"); else printf(\"False\\n\"); }
When you're using ==, you're comparing pointers. That is, it will return true if the two operands refer to the same string in memory. Therefore, it's unsuitable for use in comparing strings lexicographically.