1. EC8393 FUNDAMENTALS OF DATA STRUCTURES IN C
UNIT I C PROGRAMMING BASICS
Structure of a C program – compilation and linking processes – Constants, Variables –
Data Types – Expressions using operators in C – Managing Input and Output operations
– Decision Making and Branching – Looping statements. Arrays – Initialization –
Declaration – One dimensional and Two-dimensional arrays. Strings- String operations –
String Arrays. Simple programs- sorting- searching – matrix operations.
2.
3.
4.
5. COMPILATION AND LINKING PROCESSES (EXECUTING THE PROGRAM)
Compile Program:
•Compilation can be done by using compile option from Compile menu. Shortcut key is
Alt+F9.
•After the compilation, errors & warnings are displayed. All the syntax errors are
removed from program during compilation.
•The source program statements should be translated into object programs for
execution. If there is no error, now we can execute the program.
•If there is any error, then the programmer should correct it.
Linking
•Linking keeps all program files and functions required by the program together.
For example, if the programmer is using pow() function, then the object code of this
function should be brought from math.h library and linked to the main() program.
Executing the Program:
•After compilation, the executable object code will be loaded in the computer’s main
memory and the program is executed.
•In case of logic or data errors in the program, the source program is altered and all the
earlier initiated steps such as compilation, linking and execution are repeated.
•Execution can be done by going to Run menu and invoking run option.
•Shortcut key is Ctrl+F9
See the output:
Short cut key for seeing the output is Alt+F5 or we can choose user screen option from
windows menu.