Function Pointers for beginners! How and when to use Function Pointers?

CodeBeauty
CodeBeauty
64.4 هزار بار بازدید - 3 سال پیش - 📚 Learn how to solve
📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
C++ Lambdas e-book - free download here: https://bit.ly/freeCppE-Book
Entire Object-Pascal step-by-step guide - free download here: https://bit.ly/FreeObjectPascalEbook

🚀📈💻🔥 My Practical Programming Course: https://www.codebeautyacademy.com/
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

Download Visual Assist here:  https://bit.ly/WT-CB
I use it to enhance the performance, features, and support for C, C#, and C++ development in Visual Studio.
Download Ultra Edit here: https://bit.ly/UE-CB
It is a powerful, secure text editor designed specifically for programmers.

If you want to learn how to build modern C++ GUI apps you can download C++Builder here: https://bit.ly/CppBuilderFree
and use this video as a tutorial: Build C++ GUI apps FAST! Your first C...

Function pointer is a special type of pointer that is used in order to store the address of a function.
Function pointer syntax is complex and many beginners find it hard to understand.
In this video, I'll explain how to use function pointers in C++ and what is their purpose.
I'll show you how to create a function pointer, how to invoke a function using a function pointer, and also how to use and create function pointers to functions that receive parameters/arguments.
Function pointers are often used in order to optimize the code and make it reusable, and in this video, I'll explain how to use a function pointer in order to pass a function as a parameter/argument to another function.

☕ If you've found my content helpful and would like to support me, you now have the option to buy me a coffee or a cookie! It's a small gesture of gratitude that means a lot to me and helps me keep creating free educational videos for you. Use the link to make a contribution: https://bit.ly/CodeBeauty_BuyMeACoffee
However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇

Contents:
00:00 - Intro to function pointers
01:26 - What are function pointers?
03:40 - How to create a function pointer?
05:25 - How to invoke a function using a function pointer?
06:10 - Pointer to a function with parameters
09:01 - Why and when to use function pointers?
16:12 - How to pass a function as a parameter/argument to another function?

Follow me on other platforms:
Instagram 📸 - Instagram: TrueCodeBeauty
Twitter 🐦- Twitter: TrueCodeBeauty

******CODE IS IN THE COMMENTS******
3 سال پیش در تاریخ 1400/04/02 منتشر شده است.
64,478 بـار بازدید شده
... بیشتر