
geeksforgeeks.org
https://www.geeksforgeeks.org/cpp/functions-in-cpp…
Functions in C++ - GeeksforGeeks
Just like in other languages, C++ functions can take inputs (called parameters), execute a block of statements, and optionally return a result. C++ also supports advanced features like function overloading, default arguments, and inline functions, which give more flexibility compared to C.