From f1d6cd51cd6ab46c08cd73da7db1a401aabfb65b Mon Sep 17 00:00:00 2001 From: Michael Budnikov <116641987+Mishanya00@users.noreply.github.com> Date: Tue, 25 Jun 2024 18:04:06 +0300 Subject: [PATCH] Update index.md: Article about function pointers was added (#5916) I added the link to the article about function pointers in C++ that helped me to learn more about it and try it on my own. --- .../roadmaps/cpp/content/105-pointers-and-references/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/data/roadmaps/cpp/content/105-pointers-and-references/index.md b/src/data/roadmaps/cpp/content/105-pointers-and-references/index.md index 5653ca179..dc3eb6e9e 100644 --- a/src/data/roadmaps/cpp/content/105-pointers-and-references/index.md +++ b/src/data/roadmaps/cpp/content/105-pointers-and-references/index.md @@ -54,3 +54,7 @@ int &ref = num; // Reference 'ref' is now an alias of 'num' Modifying the value of `ref` will also modify the value of `num` because they share the same memory location. **Note:** References are generally used when you want to pass a variable by reference in function arguments or when you want to create an alias for a variable without the need for pointer syntax. + +Learn more from the following resources: + +- [@article@Function Pointer in C++](https://www.scaler.com/topics/cpp/function-pointer-cpp/)