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
You may want to use strcmp here.