c and c++ code test