title: .exe file is not being created in windows for C by cmd by gcc compiler
body: <p>i am also worried about how to make u guys understand about my problem and share my experience. i am learning C.in previous, i used the Code-blocks IDE to compile and run C code.i learned that as a beginner it would better to use cmd to compile and run code than IDE. i am using windows 8. Before i was not use to with cmd, i also learned  that to be a advance user and good programer i should know the use of cmd well. 
  After setting the environment variable started to compile c code by cmd by the following command</p>
  
  <p>gcc -o "executable file name"               "C source code file name"</p>
  
  <p>it craete a .exe file. but no .o file. when i worked with IDE, also a .o file was found with .exe </p>
  
  <ol>
  <li>what is the possible reason for it?</li>
  </ol>
  
  <p>after compiling the code, i ran it by calling "executable file name".
  and when checked the directory, then a .exe file was found.
  but now the problem is, recently i am compiling and running code, i found that there is no .exe file created, but a file has created with  unknown extension"<strong>POINTERWHILE File (.pointerWhile)</strong>"(copied from file properties). this unknown extension file is only runing by the cmd. it may be the one part of my source code file name. the code has given below and the name of source code.</p>
  
  <p>Name of source code: Example184.1.pointerWhile</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  main()
   {
    char *p = "stop";
    char str[80];
     do
      {
       printf("Enter a String: ");
       gets(str);
      }
    while(strcmp(p,str));
   }
  </code></pre>
  
  <p>this program will take input until, "stop" entered.</p>
  
  <p>this kind of things happened for several other files.then i copy them, to an another folder and compile and run but the same result.</p>
  
  <p>i complied and run the same code form same folder and other folder by codeblocks, the result is same. the file is only running when it is in IDE. </p>
  
  <p>then make an another file with other name in same directory and other, but the same code. then it is creating .exe file. </p>
  
  <p>2.what may the cause for creating .exe file?</p>