title: Break statement not within loop or switch in C
body: <p>I am getting this error in my C code. I don't know what I am doing wrong. If I comment this code my program works. <strong>This piece of code is inside int main().</strong></p>
  
  <pre><code> if(argc!=2 &amp;&amp; strcmp(argv[0],"selection-sort")==0 &amp;&amp; strcmp(argv[1],"input.txt")==0 &amp;&amp; strcmp(argv[2],"output.txt")==0)
          {
                  printf("The command line arguments are correct.\n");
          }
          else
          {
                  printf("The command line arguments are wrong.I am exiting.\n");
                  break;
          }
  </code></pre>