0% found this document useful (0 votes)
12 views

Topic: Steps Involved in C-Programming D. Aravind Kumar

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODP, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Topic: Steps Involved in C-Programming D. Aravind Kumar

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODP, PDF, TXT or read online on Scribd
You are on page 1/ 8

TOPIC:

STEPS INVOLVED IN C-
PROGRAMMING
D. ARAVIND
ABOUT ‘C’ PROGRAMMING
§The C programming language is a low-level (close to the
computer) computer programminglanguage that was
developed to do system programming for the operating
system UNIX and is an imperativeprogramming language. C
was developed in the early 1970s by KenThompson and
DennisRitchie at BellLabs. It is a procedurallanguage, which
means that people can write their programs as a series of
step-by-step instructions. C is a compiledlanguage. This
means that the computer doesn't have to build the
application every time it is opened.
§
STEP’S IN PROGRAM
STEP 1: CREATING SOURCE
CODE
§ Source code is a file with C programming instructions in a high-level language. To create
source code, we use any text editor to write the program instructions. The instructions
written in the source code must follow the C programming language rules. The following
steps are used to create a source code file in Windows OS…
§ Click on the Start button
§ Select Run
§ Type cmd and press Enter
§ Type cd c:\TC\bin in the command prompt and press Enter
§ Type TC press Enter
§ Click on File -> New in C Editor window
§ Type the program
§ Save it as FileName.c (Use shortcut key F2 to save)
§
STEP 2: COMPILE SOURCE
CODE (ALT+F9)
§ The compilation is the process of converting high-level language
instructions into low-level language instructions. We use the shortcut
key Alt + F9 to compile a C program in Turbo C.
§ Whenever we press Alt + F9, the source file is going to be submitted to
the Compiler. 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 a 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
a .exe extension
STEP 3: EXECUTING/RUNNING
EXECUTABLE FILE (CTRL+F9)
After completing compilation successfully, an executable file is created with
a .exe extension. The processor can understand this .exe file content so
that it can perform the task specified in the source file.

We use a shortcut key Ctrl + F9 to run a C program. Whenever we


press Ctrl + F9, the .exe file is submitted to the CPU. On
receiving .exe file, CPU performs the task according to the instruction
written in the file. The result generated from the execution is placed in a
window called User Screen.
STEP 4: CHECK RESULT
(ALT+F5)
§ After running the program, the result is placed into User Screen. Just we
need to open the User Screen to check the result of the program
execution. We use the shortcut key Alt + F5 to open the User Screen and
check the result.
EXECUTION PROCESS OF C
PROGRAM
§ When we execute a C program it undergoes with the following process…

§
§
§

The file which contains c program instructions in a high-level language is


said to be source code. Every c program source file is saved with .c
extension, for example, Sample.c.

You might also like