

This is a package of the IDE + Mingw C compiler.Īlternatively, you can also download the IDE and the compiler separately, with the and follow the instructions to set up the C compiler covered in the later part of the article. However, you can select and download the from the official website. Step 0: Set up the Environment/IDEĬode::Blocks is an IDE, so it doesn’t come with a C language compiler by default.


We will see how to set up the environment and create a source code file, compile, and run it. In this section, we will showcase how to run C program using Code::Blocks, one of the most popular IDE for C and C++ programming languages. Some of them are Code::blocks, Eclipse, Netbeans, Dev-C++, etc. How To Compile & Run A C Program With IDEĪ number of IDEs (Integrated Development Environments) are available for C language to type, compile, debug, and run C source code. We have given step-by-step instructions on how to run/ execute a C program with and without an IDE as well as in Visual Studio code editor (i.e., VSCode). Wondering how? In this article, we will discuss everything you need to know about how to run a c program. Note that the C language is platform-dependent and must be compiled into object code by a compiler for execution of C program. It is one of the earliest and most influential programming languages that also inspired the syntax of other languages like C++, C#, Java, Javascript, etc. C is a middle-level procedural programming language, that is, it provides both low-level features to access memory addresses and high-level features such as functions, structures, etc.
