C and CPP examples and testing