C/exe file of c++ program
Expert: Zlatko - 8/27/2010
Questionhow can we create an exe file of a c++ program which can run without c++ compiler also?
AnswerYour C++ compiler will create an exe file. Once you have the exe file, you can run it on any compatible computer. You no longer need the compiler. If you change your C++ code, then you will need the compiler again to create a new exe file.
The compiler never runs the program. The compiler makes an exe and it is the exe which runs.
Look for the exe file in the directory of your source code or in a Debug or Release sub-directory. Where the exe is depends on which compiler you are using, so I cannot say for certain where you will find it. You will have to look around.
Best regards
Zlatko