c and c++ code