compile c code using c++ compiler code example
Example 1: compile c++ program
$ g++ -o <name-you-want-to-give> source.cpp
$ ./myprogram
Example 2: online compiler cpp
Good cpp compilers:
---------------------
repl.it/languages/cpp
www.w3schools.com/cpp/trycpp.asp?filename=demo_helloworld
onlinegdb.com/online_c++_compiler
programiz.com/cpp-programming/online-complier
cpp.sh