how to run c in linux

C++
g++ foo.cpp -o foo //plus other extension like the opencv to compile correctlygcc hexdump.c -o hexdump //hexdump is an example for a file name
Source

Also in C++: