int main (int argc, **argv) { if (argv[1] == \"-hello\") printf(\"True\\n\"); else printf(\"False\\n\"); }
Strings are not native types in C. What you are comparing in that example are two pointers. One to your first argument, and the other is a static character array with the contents of "-hello".
You really want to use strncmp or something similar.