My collection of useful code snippets when learning/refreshing C/C++ based on various toturials and own experience
Many C++ compilers are also C compilers
gcc
clang
g++
cling (interactive, based on clang)
clang (and cling) has often more user-friendly error messages, when compared to g++
Depends on arguments used.
clang on C/C++ code, threading enabled
clang -std=c++14 -pthread -o exefile <src>.cpp