Compile C++ program using g++ on Linux
Linux command to compile c++ program using g++ on Linux
g++ temp.cpp -o temp.out
Running executable on Linux
./temp.out
Compile C program using gcc on Linux
gcc temp.cpp -o temp.out
Running executable on Linux
./temp.out
Other Categories
MCQ on C Programming MCQ on C++ Programming Basic Computer Questions Solved C programs Solved C++ programs