Flowchart Is The Graphical or Pictorial Representation of An Algorithm With
Flowchart Is The Graphical or Pictorial Representation of An Algorithm With
Decision Diamond
Algorithm:
Flow chart:
Creating and Running C Program
Generally, the programs created using programming languages like C, C++,
Java etc., are written using high level language like English. But, computer
cannot understand the high level language. It can understand only low level
language.
Click on Start button
Select Run
press Enter
Type TC
press Enter
On receiving a source file, the compiler first checks for the Errors. If there
are any Errors then compiler returns List of Errors, if there are no errors
then the source code is converted into object code and stores it as file
with .obj extension. Then the object code is given to the Linker. The Linker
combines both the object code and specified header file code and
generates an Executable file with .exe extension.
The file which contains c program instructions in high level language is said
to be source code. Every c program source file is saved with .c extension,
for example Sample.c.
Then we press Alt + F5 to open UserScreen and check the result of the
program.
Important Points
C program file (Source file) must save with .c extension.
Compiler converts complete program at a time from high level
language to low level language.
Input to the compiler is .c file and output from the compiler
is .exe file, but it also generates .obj file in this process.
Compiler converts the file only if there are no errors in the source
code.
CPU places the result in User Screen window.
Overall Process
Type the program in C editor and save with .c extension (Press F2 to
save).
Press Alt + F9 to compile the program.
If there are errors, correct the errors and recompile the program.
If there are no errors, then press Ctrl + F9 to execute / run the
program.
Press Alt + F5 to open User Screen and check the result.