title: how do I use the arguments of main in C?
body: <p>I'm using this code to test the entry from the command line when executing the program .. It's  not working. What should I do ???? ?</p>
  
  <pre><code>if(argc &gt;1)
      {
          if (argv[1]  == "b" || argv[1]  == "B")
                  {b =1;}
          else if (argv[1]  == "h" || argv[1]  == "H")
                  { b = 0;}
      }
      else 
          { b =0; }
  </code></pre>