Installing C with Dev-C++
💻 Installing C with Dev-C++ (Step-by-Step Guide)
Dev-C++ is a simple IDE (software) used to write and run C programs easily 👍
🔹 What is Dev-C++?
Dev-C++ is a free software that includes:
- Editor (to write code ✍️)
- Compiler (to run code ⚙️)
🔹 Step 1: Download Dev-C++
- Go to official or trusted website (like SourceForge)
- Search for Dev-C++ latest version
- Download the setup file
👉 Recommended: Dev-C++ (Orwell / Embarcadero version)
🔹 Step 2: Install Dev-C++
-
Open the downloaded
.exefile - Click Next → I Agree
- Choose installation folder
- Click Install
- Finish installation ✅
🔹 Step 3: Open Dev-C++
- After installation, open Dev-C++
- You will see the main interface (editor screen)
🔹 Step 4: Create Your First C Program
- Click File → New → Source File
- Write this code:
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}
🔹 Step 5: Save the File 💾
- Click File → Save As
-
Save with
.cextension
👉 Example:hello.c
🔹 Step 6: Compile and Run ▶️
- Press F11 or click Execute → Compile & Run
🎉 Output:
Hello, World!
🔹 Important Tips ⚠️
-
Always save file with
.cextension -
If error comes → check semicolon
;and spelling - Use F11 to quickly run program
🔹 Alternative Software (Optional)
If Dev-C++ feels outdated, you can also try:
- Code::Blocks
- Visual Studio Code
🔹 Summary 📝
- Download Dev-C++
- Install it
- Write C program
- Compile & Run
Comments
Post a Comment