EXECUTING A PROGRAM USING TURBO C
Turbo c is a powerful environment that enables coding , compilation,liking and execution of a c program by providing user- friendly menus.
TYPING THE PROGRAM
the first step in creatinga c program is to write the program code and save it in a. c file. to do this:
SAVING A PROGRAM
once the programhas been written , it has to be saved . to save the program
COMPILING A PROGRAM
THE PROGRAM SHULD BE COMPILEDBEFORE IT CAN BE EXECUTED. TO COMPILE A PROGRAM.
CHOOSE THE COMPILE MENU BY PRESSING THE ALT AND C KEYS TOGETHER.
EXECUTING A PROGRAM
once the program has been successfully compiled , it can be executed. to execute a program:
1. chose the run menu by pressing the Alt and keys together.
2. press the R key to select the Run option {refer Figure}
LOADING AN EXISTING PROGRAM
you can open a program in the turbo C editor if you choose to make changes to the existing code .
to open an existing program in the turbo C editor:
1. choose the file menu by pressing the Alt and keys together .
2. press the L key to select the Load option .
3. Type the name of the existing file.
4. Press the Enter key . The file Will be loaded
EXITING TURBO
To exit turbo C:
1.choose the file menu by pressing the Alt and F keys together .
2. press the Q key to select the Quit option.
THE C CHARACTER SET AND WORD SET
Every language has its own character set and grammar . Similarly , Calso has own character set , word set, and grammar
Now You Know
* The # include statement enables the user to include header files within the C program
* Printf () is a function for displaying information on the screen
* The C preprocessor directive is a collection of statements , which are exwcuted at the beginning of the compilation process.
Turbo C is a powerful environment used to create and execute C programs.
* C programs can be typed in the Turbo C code editor window.
* To compile the program , select the compile to OBJ option on the compile menu .
*To execute the program , select the Run option on the run menu.
* The character set is a group of characters supported by c.
* character in C are grouped into letters , digits and special characters.
* C has a list of keywords, which have predefined meanings that cannot be changed.
No comments:
Post a Comment
THE WORLD NEW TECHNOLOGY