how do i run my c code ?

Tarihine

Global Mod
Global Mod
How do I run my C++ code?
Compile and Execute C++ ProgramOpen a text editor and add the code as above.Save the file as: hello.cpp.Open a command prompt and go to the directory where you saved the file.Type 'g++ hello. cpp' and press enter to compile your code. ... Now, type 'a. ... You will be able to see ' Hello World ' printed on the window.