Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

C Program Compiling and running

To compile and run a C program using Turbo C, an IDE for C programming, you can follow these steps:

1. Launch Turbo C:

  • Open Turbo C on your system. It is an IDE specifically designed for C programming.

2. Create a new source file:

  • Click on the “File” menu and select “New” to create a new source file.

3. Write your C program:

  • In the editor window that opens, write your C program using the C programming language syntax.

4. Save the source file:

  • Click on the “File” menu and select “Save” to save your C program file with a .c extension (e.g., program.c).
  • Choose a suitable location and provide a filename for your program.

5. Compile the C program:

  • Click on the “Compile” menu and select “Compile” or press the F9 key.
  • The Turbo C compiler will compile your C program and check for any syntax errors.

6. Check for compilation errors:

  • If there are any errors in your program, Turbo C will display them in the “Output” window.
  • Fix the errors in your source code based on the error messages provided.

7. Run the compiled program:

  • Once the compilation is successful, click on the “Run” menu or press Ctrl+F9 to run the compiled program.
  • The output of the program will be displayed in the “Output” window.

Some IDEs that support C programming:

1. Visual Studio Code (VS Code):

  • VS Code is a lightweight and versatile code editor that supports C programming.
  • It offers various features such as syntax highlighting, code completion, debugging, and integrated terminal.
  • It is highly customizable and supports extensions for additional functionality.

2. Code::Blocks:

  • Code::Blocks is a free and open-source IDE specifically designed for C, C++, and Fortran.
  • It provides a user-friendly interface and features like code highlighting, code completion, project management, and debugging.
  • Code::Blocks is available for Windows, Linux, and macOS.

3. Eclipse with C/C++ Development Tools (CDT):

  • Eclipse is a widely used IDE for various programming languages, including C and C++.
  • The CDT plugin provides comprehensive tools for C development, including code navigation, debugging, and refactoring.
  • Eclipse is available for Windows, Linux, and macOS.

4. Xcode (for macOS and iOS development):

  • Xcode is the official IDE for macOS and iOS development and supports C programming.
  • It offers an intuitive interface, powerful debugging tools, and integration with other Apple development frameworks.
  • Xcode is available only for macOS.

5. Dev-C++:

  • Dev-C++ is a lightweight and easy-to-use IDE for C and C++ programming.
  • It provides an integrated development environment with features like syntax highlighting, code completion, and debugging.
  • Dev-C++ is available for Windows.

Some online platforms to write and run C programs:

  1. OnlineGDB (
  2. (
  3. JDoodle (
  4. IDEONE (
  5. CodeChef IDE (