Showing posts with label C Programming. Show all posts
Showing posts with label C Programming. Show all posts
Getting started with C is very easy, You just need the Turbo C++ IDE to start it from your Computer, If you don't know about the Turbo C than have a quick look on it at; Overview of Turbo C Integrated Development Environment. 

OK If you have know enough about Turbo C IDE then starting it is very easy and depends on you that how you receives it.

Creating Source Program:

Creating source program is the very first step in developing C Program, In this step we have to write some code in the Turbo C and then we will save it on our computer Hard Drive, 
We can save the program by pressing F2 Key or going through the File menu ----> Save.

Compiling the Program:

After saving the program then we have to compile the program, In this process the Turbo C Compiler checks the program for Errors, And if there are some Errors then it detects them and shows to us and if there is no error then its objects file is created automatically, 
We can compile the program by pressing Alt+F9 or by going to the Compile menu -----> Compile to OBJ.


Executing the Program:

So we have compile are source program and its object file is created, now next and final step is to execute or run. In this step the results of our written program are shown on the screen, 
For Running or executing program we have to press Ctrl+F9 or by selecting RUN menu -----> RUN.


Lets Start with C Language

Getting started with C is very easy, You just need the Turbo C++ IDE to start it from your Computer, If you don't know about the Turbo C than have a quick look on it at; Overview of Turbo C Integrated Development Environment. 

OK If you have know enough about Turbo C IDE then starting it is very easy and depends on you that how you receives it.

Creating Source Program:

Creating source program is the very first step in developing C Program, In this step we have to write some code in the Turbo C and then we will save it on our computer Hard Drive, 
We can save the program by pressing F2 Key or going through the File menu ----> Save.

Compiling the Program:

After saving the program then we have to compile the program, In this process the Turbo C Compiler checks the program for Errors, And if there are some Errors then it detects them and shows to us and if there is no error then its objects file is created automatically, 
We can compile the program by pressing Alt+F9 or by going to the Compile menu -----> Compile to OBJ.


Executing the Program:

So we have compile are source program and its object file is created, now next and final step is to execute or run. In this step the results of our written program are shown on the screen, 
For Running or executing program we have to press Ctrl+F9 or by selecting RUN menu -----> RUN.


Turbo C ++ is an integrated Development environment for creating programs in C ++, since the C ++ is based on the C language the Integrated Development can also be used for creating programs in C language,
The Turbo C is developed by BORLAND  INTERNATIONAL. 
Turbo C has a very handy and easy to use environment, It has many features including Typing, Editing, Saving and compiling of  both  C++ and C programs.





Location of Turbo C on the Disk:-

By default Turbo C ++ is installed in the tc directory on the c Drive of your computer System. Its executable file is stored in the c:\tc\bin directory. 
Turbo C ++ IDE is run by locating and clicking the tc.exe file in the location mentioned above. 

Navigation or Menus in the C ++ IDE:

A menu can be open by clicking on its name in the menu bar at the top of  IDE. It can also be opened by pressing the ALT key together with the first latter of the menu name. For example ALT+F for opening the File menu.
Turbo C IDE has many menus some of them are as follows

File menu ALT+F.
Running the program  CTRL+F9 or ALT+R for opening the RUN Menu.
Compile menu ALT+C.
Project menu ALT+P.
Options menu ALT+O.
Debug menu ALT+D.
For help F1, For Zooming F5, For switching F6, For tracing F7, For all menus F10.
And for exiting from the C ++ IDE ALT+E.

  

Overview of Turbo C ++ Compiler

Turbo C ++ is an integrated Development environment for creating programs in C ++, since the C ++ is based on the C language the Integrated Development can also be used for creating programs in C language,
The Turbo C is developed by BORLAND  INTERNATIONAL. 
Turbo C has a very handy and easy to use environment, It has many features including Typing, Editing, Saving and compiling of  both  C++ and C programs.





Location of Turbo C on the Disk:-

By default Turbo C ++ is installed in the tc directory on the c Drive of your computer System. Its executable file is stored in the c:\tc\bin directory. 
Turbo C ++ IDE is run by locating and clicking the tc.exe file in the location mentioned above. 

Navigation or Menus in the C ++ IDE:

A menu can be open by clicking on its name in the menu bar at the top of  IDE. It can also be opened by pressing the ALT key together with the first latter of the menu name. For example ALT+F for opening the File menu.
Turbo C IDE has many menus some of them are as follows

File menu ALT+F.
Running the program  CTRL+F9 or ALT+R for opening the RUN Menu.
Compile menu ALT+C.
Project menu ALT+P.
Options menu ALT+O.
Debug menu ALT+D.
For help F1, For Zooming F5, For switching F6, For tracing F7, For all menus F10.
And for exiting from the C ++ IDE ALT+E.

  
There are five steps to prepare C Program for the execution on the system, These Steps are given below:

1. Creating source Program
2. Saving the Source program
3. Compiling the Program
4. Linking in the Program
5. Loading and Running the Program 





Creating Source Program:

The first step is to write a program for the other steps to come, As we know the program written in high level language is known as source program, a source program is created in a text editor or we can direct write it in Turbo C IDE.

Saving the source program:

After writing the source program or source code now we can save it on the hard disk. The C program is saved on the hard disk in the form of text file with an extension of .c.

Compiling the program:

The process of converting the source code into machine language code is called compilation of the program, And compiler does this for us, The machine program is also called the object program, thats why it saved with an extension of .obj.
In this process errors are also removed by the programmer as the compiler specify them. Object program is saved at a separate location.

Linking in the Program:

A C program may contain predefined functions and routines. These functions are stored in a separate files, These functions are also called Library files or run-time libraries.
These files are combined with object program for the execution, And this overall process of combining the needed library functions is called linking.

  Loading and Running the Program:

In this final step program is run on the computer system, the executable file is run by loading it into the memory, This can be done by the loader or system loader. And after loading the program shows its result or output.

5 Steps Required for the Preparation of C Program Execution

There are five steps to prepare C Program for the execution on the system, These Steps are given below:

1. Creating source Program
2. Saving the Source program
3. Compiling the Program
4. Linking in the Program
5. Loading and Running the Program 





Creating Source Program:

The first step is to write a program for the other steps to come, As we know the program written in high level language is known as source program, a source program is created in a text editor or we can direct write it in Turbo C IDE.

Saving the source program:

After writing the source program or source code now we can save it on the hard disk. The C program is saved on the hard disk in the form of text file with an extension of .c.

Compiling the program:

The process of converting the source code into machine language code is called compilation of the program, And compiler does this for us, The machine program is also called the object program, thats why it saved with an extension of .obj.
In this process errors are also removed by the programmer as the compiler specify them. Object program is saved at a separate location.

Linking in the Program:

A C program may contain predefined functions and routines. These functions are stored in a separate files, These functions are also called Library files or run-time libraries.
These files are combined with object program for the execution, And this overall process of combining the needed library functions is called linking.

  Loading and Running the Program:

In this final step program is run on the computer system, the executable file is run by loading it into the memory, This can be done by the loader or system loader. And after loading the program shows its result or output.