Step 3: Open the Code::Blocks Setup file and follow the instructions Next > I agree > Next > Install. you don’t need to change anything. This installs the Code::Blocks with gnu GCC compiler, which is the best compiler to start with for beginners.

Step 5: Write the C code and save the file with .c extension. To save the file, go to File > Save (Shortcut: Ctrl + S). Important: The filename should end with a .c extension, like: hello.c, your-program-name.c

Step 6: To run the program, go to Build > Build and Run (Shortcut: F9). This will build the executable file and run it.

If your program doesn’t run and if you see the error message “can’t find compiler executable in your search path(GNU GCC compiler)”, go to Settings > Compiler > Toolchain executables and click Auto-detect. This should solve the issue in most cases.