Compile a C language program as follows:
# Include "stdio. H" Void main () {printf ("Welcome to C world! /N ");/* notation */}
Compile it into an EXE file and call it in the command line:
The normal display should be:
However, in many cases, the result of executing this exe program is blank:
This problem exists in both Turbo c2.0 and 3.0 compilation, and may also be caused by a problem in our system. The problem has not been found yet. But let's talk about the solution first!
Add a line to the previously written Program:
# Include "stdio. H" Void main () {printf ("Welcome to C world! /N ");/* notation */System ("pause ");/* This statement is used to suspend a command line */}
In this way, the following output is available for executing the EXE program again:
At this time, no matter what C program is executed, it is okay, but note that this solution is to run first every time
System ("pause ");