Basic C and C++ codes