example for c, c++