BEST TUTORIAL FOR PROGRAMMING        
BEST TUTORIAL FOR PROGRAMMING

C Hello World

Program With Dev C++

Here, we will learn that how to write c program in Dev C++ and how to use Dev C++ to write C hello world program and for C programming.




C Hello World

Now, we will see that how to write C hello world program with Dev C++ IDE. We can use Dev C++ for C programming very easily and Dev C++ makes creating C programs and applications simple for us.


Following steps, We need to follow for creating C hello world program with Dev C++ IDE :

1 Open Dev C++ : Go to Desktop and double clicks on Dev C++ icon or click on Windows's start menu and then click on All Programs and find Dev C++ from list and click on it.


2 After Opening : Click on File Menu and then click on New option and then click on Source File or press Ctrl+N.


3 Type or Enter Code : Type or enter code like this.


write code for C program in code blocks
write code for C program in code blocks

4 Save Source File : Click on File Menu and select Save option or press Ctrl+S. After that a window will open and on this window type File name with c or cpp extension like hello.c / hello.cpp after that click on Save button.


5 Run Program : Click on Execute Menu and select Compile & Run option or press F11. After that a window will open.


run c program in code blocks
run c program in code blocks

Once you have done with build and run the program. now go to that directory or folder where you saved your C source file. inside this folder, you will get an executable file like hello.exe. You can run this executable file directly clicking double.


6 congratulations !!, You have been successfully run your C hello world program with Dev C++ IDE.



Info : We will understand this program in coming sections, that why we wrote main, int , getch, printf etc in this program.
Understand Now