(1)First download http://www.mingw.org/
(2)Add /Update the Path by pointing to the bin location.
(3)Download Eclipse Editor for C/C++.
(4)Create a new C/C++ project Hello World.
(5)Before running the code,Build the project and then right click on the file and run as C/C++ application.