Sampling of C and C++ code