Loved this. I have been using structs as if they were classes, and function pointers as if they're class methods :'D
The best function pointer video I have come across
This one video condenses so much. Examples are excellent templates. Brilliant content, thank you so much
this is my second time to watch this lesson, and the picture is more cleared. all what is explained has a sens and targeted the main core of pointer and its their use. You put all such effort to make it accessible and detailed for US, a work that has a GREAT MERIT. thank you
Everything about function pointers covered in one video. Great. Thanks.
Another great & simple explanation, thanks for creating it!
Callback functions in C make me appreciate virtual functions in C++ so much more :D
Amazing video. Crystal clear explanation
I am an old c programmer, now i am AI expert developper, but still attach on C langage, thanks for this short memory guide tutorials......😂❤❤❤❤❤
This is the most beautifully and exceptionally well explained one of a kind video on a Function Pointers in C. Wow 🤩 amazing bravo 🙌 Thanks from India 🇮🇳.
Nice Explaination Sir!! Keep the good work going.
Great video! A few days ago I was researching for ways to introduce some sort of polymorphism in my generic linked list library when I stumbled upon function pointers. It completely blew my mind. I had not even the slightest idea you could do this with functions! It's crazy! Actually, I've been looking for this solution for quite a long time, but as I didn't know much of C or programming in general I didn't even know how to look for it. It wasn't until I started learning OOP fundamentals recently that I started getting hints of it. So, it's a particularly satisfying discoverment! Today I could finally start trying this out in my programs, but I'm having trouble understanding some things. In college we've been taught that a good programming practice is to declare functions, then define / implement them. In a similar manner, we've also learned from Abstract Data Types (I dunno the acronym in english, in my country is TDA) to declare all the interface's functions in the .h file, then define them all in a .c file. Without going much further, I was making a function "printData" that recieves a void pointer to some data and a pointer to a function to print that data according to its type (print_int if it's an integer, print_string and so on). I did an empty project and put everything only in the main.c file to be minimalistic. I first tried declaring all the functions above the main() function, then defining them below it, but it didn't work. Then I noticed that it does work when you just do it above the main function (declaration and implementation). My questions are: - Why is this? And, related to what I previously mentioned: - How should I do it when working with multi-file projects? It's also really plausible that I'm making a mistake so I'll double check, but ultimately my questions still stand.
Thank you for this precious content. Im brazilian and I've following your videos
thank you so much. You have become my go to channel to learn c.❤❤❤❤❤❤
This is a great vid; have always been interested in making C do more dynamic things and this is a great illustration of how function pointers can accomplish that. Great explanation of these concepts
Man, great video. One thing I wanna mention is that I prefer defining function pointers with "typedef". It yields much much cleaner syntax which helps to better reason about the code.
you did great job , thanks alot, from morocco
I haven’t programmed in C in a two years and watched this out of curiosity but damn this video made it all click again
Quite beautiful functionality. Thanks for sharing.
@bettyswunghole3310