# Functions Functions in C++ are self-contained blocks of code designed to perform specific tasks, promoting code reusability and modularity. They come in two main types: standard library functions (pre-built functions like `sort()` and `sqrt()`) and user-defined functions (created by the programmer). Defining a function involves specifying its return type, name, and a list of parameters it accepts. To use a function before its definition, a function prototype can be declared, informing the compiler about the function's signature. Visit the following resources to learn more: - [@article@C++ Functions](https://www.w3schools.com/cpp/cpp_functions.asp) - [@article@introduction to functions in c++](https://www.learncpp.com/cpp-tutorial/introduction-to-functions/) - [@video@Learn C++ With Me #20 - Functions](https://www.youtube.com/watch?v=C83tPpvxIJA)