int main (int argc, **argv) { if (argv[1] == \"-hello\") printf(\"True\\n\"); else printf(\"False\\n\"); }
Because C strings are array of characters. Arrays are simply pointers to the first element in the array, and when you compare two pointers using == it compares the memory address they point to, not the values that they point to.