- compile your source code using command
g++ a.cpp
. It will create by defaulta.out
file which is runnable - run runnable file
./a.out
- pass name of the output file while compiling
g++ b.cpp -o b.out
- and run that output file
./b.out
g++ a.cpp
. It will create by default a.out
file which is runnable./a.out
g++ b.cpp -o b.out
./b.out