C vs C++ General Return Type In C, any function with no return type specified is assumed to have a return type of int. In C++, no such assumption is made, and it's a compile-time error to not specify the return value of a function. Read More →