c/c++ example