How to write & run a C program & what IDEs will we need to do this ?
IDEs
There are many IDEs in the world. Here are examples of popular Integrated Development Environments (IDEs) for different programming languages. Eclipse, Visual Studio, Xcode, Android Studio, IntelliJ IDEA , PyCharm, Visual Studio Code, Atom, Sublime Text, NetBeans, Code::Blocks. Now we are using Quincy IDE for written C program, because as students, it is a best practice to use software like this until we have a rough idea about code.
After install Quincy 2005....
Now We can write C program
Step 1 - Open Quincy 2005 software
Step 2 - Create new C source file
- Go to the File and click New
- And select C Source File and then click OK
- If you finished that all steps successfully, You will be able to see your Quincy software like this
Step 3 - Now we can write C programs after the save this file
- Save this file named MyFirstProgram.c
- To write the first c program
#include <stdio.h>
int main(){
printf("Hello World!\n");
return 0;
}
Step 4 - Compile and Run
- If your already installed GCC compiler, You can compile this program using those commands type in cmd
- gcc MyFirstprogram.c
- gcc MyFirstProgram.c -o MyFirstProgram.exe
- If not you can use Quincy default compiler to compile and run program
- Click build
- Click Run
- Finally, output must be








Comments