The majority of C programs can be made to build in C++ with minimal or zero changes. Which doesn't make such a program a C++ program----that's more about style and design----but it does beg the question of why you feel a need to do such a conversion if the code works well as-is.