C problems and solutions validating