* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
862 B
862 B
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: