mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-28 09:58:17 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
9 lines
862 B
Markdown
9 lines
862 B
Markdown
# 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) |