In case, your program contains any errors.
#CODE BLOCKS COMPILER SETUP HOW TO#
How to compile and run C program in CodeBlocks Press Ctrl + S to save.įor now you can simply copy paste the hello world C program. Browse your C workspace, mention the file name click Finish.
![code blocks compiler setup code blocks compiler setup](https://i.ytimg.com/vi/qzTU-C1M5YA/maxresdefault.jpg)
Once you created a C workspace, click the ellipsis button present under File name with full path. For now, create a new C workspace (folder) with name “Codeforwin C tutorials” anywhere in your computer. Creating a C workspace is onetime process. It is always recommended to save all your C programs in a C workspace (directory).
![code blocks compiler setup code blocks compiler setup](https://media.lanecc.edu/users/birdb/CS133G/CodeblocksScreenShot1.jpg)
![code blocks compiler setup code blocks compiler setup](https://www.francogarcia.com/static/ce08c9b35fb479a0da4ac1f84a2527e1/b8581/codeblocks-and-command-line.png)
In this post we will move further and see how to create, compile and run a C program in CodeBlocks. In previous post, I explained installation and configuration of CodeBlocks. However, I always recommend a beginner to use command prompt for sometime for compiling and executing C programs.ĬodeBlocks is a powerful IDE for creating, compiling, executing and debugging C/C++ programs. Once you got strong hold to compile and execute C programs using command line, it’s time to switch to IDE. Compiling and executing C programs using command prompt has always been a nightmare to programmers.