CC++Introduction to C++Language FeatureLearn C++

How To Compile And Run C Program In Turbo C++

How To Compile And Run C Program In Turbo C++

C is one of the most powerful programming languages. Using a fast and reliable C or C++ compiler for Windows is very important for beginners and professionals since it helps C/C++ developers in remembering which language features exist, how to use them, and even detect errors when we get them wrong.

Today we have many free C++ IDE and compiler tools like C++ Builder CE, , Dev-C++, BCC32 Compiler, VS Code, etc. Borland Turbo C++ is another free older compiler. C++ Builder is the modernized descendent of the famous Borland Turbo C++ and its legacy. It has all the previously praised features and toolsets found in Borland Turbo C++ for DOS applications. The latest versions of C++ Builder support both 32-bit and 64-bit operating systems. The biggest addition to the Windows version of this app is its enhanced IDE with modernized compiler and up to date component set.

If you are beginner or a fan of the old Borland Turbo C++ for Windows from 1990s, or you require to create, modify or test DOS apps, instead of the old Turbo C++ IDE package, we highly recommend you to use the latest C++ Builder which has modern GUI support, development tools, is stable, and makes it easy to develop and compile C and C++ applications not only on Windows (including Windows 11) but also on iOS and Android too.

The C++Builder and RAD Studio 11.1.5 with C++ Software Code Insight Update

In C++ Builder (formerly Borland Turbo C++), simply, you can run Turbo C codes safely. by the C++ compilers and build tools like C++ Builder. C++ Builder has free C++ Builder Community Edition and C++ Builder Professional / Architect / Enterprise Versions.

C++ Builder is a modernized professional IDE and has great C and C++ compilers to create amazing C++ software for the different OS platforms. The C++ Builder IDE and it’s C and C++ compilers have many modern features to develop professional apps in modern ways. There is a new release of RAD Studio / C++ Builder version 11.1.5 with Code Insight Update. This is a quality release focused on C++ Code Insight and related features for C++ … Continue reading

292669203 10159281964412499 2865954964395779081 n 2548541

How to compile and run a C program in Turbo C++?

1. Download Borland Turbo C++ or BCC Compiler from https://www.embarcadero.com/free-tools/ccompiler

How To Compile And Run C Program In Turbo C++ A screenshot of the Turbo C++ IDE
Captured from httpswinworldpccomproductturbo c45 win

2. In C and C++ programs we use return to exit a program in C. If you are a beginner “Hello World” examples are good to understand feature of that programming language. It is good to understand how to edit text, how to write in its format, how to compile and link, how to debug and execute, how to deploy or release. This full example below is a “Hello World” C example that can be run with C++ Builder.

In this example above we define main() function as a integer (int) function, that means we should return a integer value. Here, we print a text with printf() function and then we wait to get a character input (key press) with getchar(); function, sometimes this is necessary to see results when running it. Then we exit and return 0; which means our main app successfully run and exit.

3. Press the Run Button, F9 to Compile and Run, or use Menu. If you are using Embarcadero C++ Compiler, in DOS, goto folder of your C file and type bcc32 and your file name. For example, you can compile your app as below,

To run your compiled app you can type compiled excitable file name which has .exe extension of you C file. For example to run compiled myapp.c file write its executable output as below,

How to compile and run a C program in modern Turbo C++ aka C++ Builder

cbuider studio final icons 64 9744851 4964591 6127446 4112068 5843153

C++ Builder is the easiest and fastest C and C++ IDE for building simple or professional applications on the Windows, macOS, iOS & Android operating systems. It is also easy for beginners to learn with its wide range of samples, tutorials, help files, and LSP support for code. C++ Builder comes with Rapid Application Development Studio, also known as RAD Studio, and C++ Builder is one of the most professional IDE’s that work under RAD Studio. It is the oldest IDE (it began as Borland Turbo C in 1990 and was later renamed Borland C++ Builder). Under the Embarcadero brand, multiple new versions have been released, year upon year, along with great new features, updates, and support to ensure that your apps can stay current. RAD Studio’s C++ Builder version comes with the award-winning VCL framework for high-performance native Windows apps and the powerful FireMonkey (FMX) framework for cross-platform UIs.

rads11 1u1light welcome 9155681
The Latest RAD Studio C++ Builder Welcome Screen

You can simply run your application in Debug mode and use STOP button to exit from your C or C++ application.

You can download the free C++ Builder Community Edition here: https://www.embarcadero.com/products/cbuilder/starter.

Professional developers can use the Professional, Architect or Enterprise versions of C++ Builder. Please visit https://www.embarcadero.com/products/cbuilder.

Download RAD Studio 11 Now

See What’s New in RAD Studio 11

Oh hi there 👋
It’s nice to meet you.

Sign up to receive awesome C++ content in your inbox, every day.

We don’t spam! Read our privacy policy for more info.


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial

Free C++Builder Community Edition

About author

Dr. Yilmaz Yoru has 35+ years of coding with more than 30+ programming languages, mostly C++ on Windows, Android, Mac-OS, iOS, Linux, and some other operating systems. He graduated and received his MSc and PhD degrees from the Department of Mechanical Engineering of Eskisehir Osmangazi University. He is the founder and CEO of ESENJA LLC Company. His interests are Programming, Thermodynamics, Fluid Mechanics, Artificial Intelligence, 2D & 3D Designs, and high-end innovations.
Related posts
Artificial Intelligence TechC++C++17C++20Learn C++

How To Create Simple Generative AI Code In C++

C++C++17Language FeatureLearn C++

How To Use The SVG Image Format With Skia In C++ Builder

C++C++17Language FeatureLearn C++

How To Use Skia Images in C++ Builder?

C++C++17Code SnippetGame DevelopmentLanguage FeatureLearn C++

What Is Skia In Modern C++?