command to compile cpp program using gcc code example
Example 1: compile with gcc
#Copy and paste this line in your terminal to compile your file with gcc
gcc -Wall filename.c -o filename
#To execute the file
./filename
Example 2: gcc run c++
gcc test.cpp -lstdc++