How to install Turbo C++ in Windows: Compile and Run a C Program

Sahil Sharma
3 min readJul 2, 2019

How to install Turbo C++ in Windows: Compile and Run a C Program
In this blog, we are going to install Turbo C++ and compile and run a C program. In this program, we are going to print “HELLO WORLD” on the output screen.

To Download and Install Turbo C / C++ into your PC, follow these following steps:-

Step-6. After Clicking on Setup, It will start checking your windows configuration.
Step-7. After that Click on Next.

“Your Turbo C/C++ compiler is successfully Install into Your PC”

Syntax to Print — Hello World is Given Below:-

To Compile this program press Alt+F9.

To exit the compiler press Alt+enter.

1. Header Files:- The header files are the files with the extension .h which contains c function. There are two types of header files, the files which the programmer writes or the files which comes with your computer.

Your request to use a header file by including it with the C preprocessing directive #include. Such as #include<stdio.h> and #include<conio.h>.

2. The execution of the program always starts from this point of the program. This part begins with the function name main(). This is the function from which the execution of the program starts. The body of the function is enclosed in curly braces { and }. The opening curly braces ( { ) indicate the start of the main() and closing curly braces ( } ) indicates the end of main().

3. Clrscr():- clrscr() means clear screen. Clrscr() is an inbuilt function. Clrscr() is used to clear the output of the previous program.

4. Printf():- Printf() is an inbuilt function in <stdio.h> header file. Printf() is used to print something on the output screen. The “text” is written inside the printf function. The printf() function is ends with the semi-colon (;). Syntax:-

5. Getch():- Getch() is an inbuilt function. Getch() is used to hold the output of the program on the output screen.

Conclusion:- So in this blog, we know how to install Turbo C/C++ compiler and how to run and compile a C program.

Originally published at https://www.getnotes.ooo.

--

--