I am trying to compare the parameter of command with argv[] but it\'s not working. Here is my code.
./a.out -d 1
In main function
won't that be:
if (argv[0] == "-d")
0 not 1?
0
1