BEST TUTORIAL FOR PROGRAMMING        
BEST TUTORIAL FOR PROGRAMMING

Turbo C

What is Turbo C

? : Turbo C is a popular compiler for C programming language. It is a discontinued Integrated Development Environment (IDE). Turbo C was developed by Borland. it was noted for its integrated development environment, fast compile speed and small size.

For more information about Turbo C IDE, you can visit wikipedia website Turbo C.




How to install Turbo C

?

Here, we will learn that how to download and install Turbo C IDE for Windows.



Following steps, We need to follow to download and install

Turbo C for Windows

:

1  Click on this like to Download Turbo C IDE


2  As soon as downloading completes. Go to computer's C: drive and create a folder or directory with name turboc. After that go to Download folder or directory and extract downloaded turboc zip file into C:/turboc or extract anywhere and copy extracted files or folders into C:/turboc.


3  Now go to inside the C:/turboc folder and find "INSTALL.exe" file and double clicks on it. after few seconds a window will open "User Account Control". On this window click on "Yes" to allow installation.


turbo c installer file
turbo c installer file

4  After that, One more window will open and on this window press "Enter Key" for continue.


install turbo c
install turbo c

5  On this window press "C" for selecting C drive as source.


select drive for turbo c
select drive for turbo c

6  On this window press "Enter Key" and turboc source folder will be selected by default. If not, select it manually.


source folder for turbo c
source folder for turbo c

7  On this window select "Start Installation" using down arrow key and press "Enter Key".


start installation of turbo c ide
start installation of turbo c ide

8  Now Turbo C IDE has been installed successfully. On this window press "Any Key" to read documentation of Turbo C IDE.


turbo c ide installed
turbo c ide installed

9  On this window press "Esc Key" to close Turbo C IDE documentation .


documentation of turbo c ide
documentation of turbo c ide

10  Now go to inside the C:/TC/BIN folder or directory and find TC exe file here and double clicks on it.


open turbo c
open turbo c

11  Congratulations !!, You have been successfully installed Turbo C IDE.


installation done of turbo c
installation done of turbo c



How to use Turbo C

?

We can use Turbo C for C programming very easily and Turbo C makes creating C programs and applications simple for us.



Following steps, We need to follow to use

Turbo C IDE for C programming

:

1 Open Turbo C : Go to Computer's C: drive and then go to inside the TC folder and then go to inside BIN folder and here find "TC.exe" and double clicks on it to open.


open turbo c
open turbo c

2 Turbo C IDE : It will open like this.


turboc ide
turboc ide

3 Type or Enter Code : Type or enter source code of program like this.


type or enter source code of program in turbo c ide
type or enter source code of program in turbo c ide

4 Save File : Click on File Menu and select Save option. After that a window will open and on this window type File name with c or cpp extension like filename.c / filename.cpp and then click on OK button.


4 Run Program : Click on Run Menu and select Run option or press CTRL+F9.


run c program in turbo c ide
run c program in turbo c ide

5  Congratulations !!, You have been successfully run your first C program in Turbo C IDE.



Compiler for C language

There are many C Compilers and IDEs available in different platforms for C programming like if you are using Mac operating system, then you can use Xcode IDE for C programming and if you are using Ubuntu/Unix/Linux operating systems then you can use GCC Compiler.



GCC Compiler

The GNU Compiler Collection is a compiler system produced by the GNU Project supporting various programming languages. GCC compiler is the standard compiler for most Unix-like operating systems. Most of Unix-like operating systems (RedHat, Ubuntu, Centos) provide GCC compiler by default.



Linux C compiler

Most of the Linux operating systems (RedHat, Ubuntu, Centos) provide GCC compiler by default. Here, we will see that 'how to compile and run an C program in Linux operating system?'



Following steps, We need to follow to to compile and run an C program in Linux operating system

1  Open up a terminal window on your Linux system :


2  Navigate to directory : Navigate to the folder or directory where your source code file of C program is saved. If you are on same folder or directory already, then skip this step. using cd command you can navigate between directories.

For example : if your source code file, "helloworld.c", is located in /usr/vktutorial/source, then type cd command like this.

cd  /usr/vktutorial/source


3  Build or Compile C program :


Syntax of command

gcc  < source_filename.c >  -o  < executable_filename >


Command to build or Compile C program

gcc  helloworld.c   -o   helloworld


4  Run C program :


Syntax of command

./< executable_filename >


Command to run C program

./helloworld


5  Permissions : If you are getting permission is denied error while running the program, then use these command to solve this issue.

chmod command

chmod  +x  helloworld

or
make command

make  helloworld