Function Pointers in C

preview_player
Показать описание
C Programming: Function Pointers in C Programming.
Topics discussed:
1) Definition of function pointers.
2) Declaration of function pointers.
3) Calling the functions using the function pointers.
4) Example of Function Pointer.

Music:
Axol x Alex Skrindo - You [NCS Release]

#CProgrammingByNeso #CProgramming #FunctionPointers
Рекомендации по теме
Комментарии
Автор

This is the best channel, isn't that so?

pkorneev
Автор

Superb explaination of "array of pointers and pointer to an arrays"❤️

mohanarunachalam
Автор

I think it does not make any difference how you assign the address of function to the pointer variable. Either way is right. You can also call ptr(10, 20) or (*ptr) (10, 20) does not make any difference. But, calling *ptr(10, 20) will throw compiler error !! 4:52

rambalram
Автор

coming from sololearn course to understand a function pointer and i think it's the best explanation i could find,
thank you so much Dude you're awesome !!

urahara
Автор

Simple and concise video, as all tutorials should be.

enzoqueijao
Автор

Awesome video lectures, your team really teaches very well. Thanku so much.

divyasingh
Автор

The simplest explanation for function pointers possible. Thanks!!

piyushjain
Автор

Thanks so much. This is making perfect sense to me now. I've been struggling with a book and could not figure out why they use bracket in the pointer declaration like that.

MulderXfile
Автор

ptr = &add or ptr = add doesn't make difference
you can call it like this ptr (10, 20) works the same

but if you do it like this *ptr(10, 20) compiler throws error

quak
Автор

may god bless ur soul, you are saving my grade

suhanirana
Автор

Easy to grasp this concept..Thanks a lot!!

harshpatel
Автор

pointers are always tricky, but you do a good job explaining. thank you for these videos.

Sneakyne
Автор

Thank you. Very clear explanation of function pointers.

billbez
Автор

I really can't understand why some people are giving negative marking(thumbs down)..if you can't appreciate one...atleast don't demotivate...I found this lecture awesome!!👍

richasingh
Автор

result=*ptr(10, 20);--> will give error....correct form is---result=(*ptr)(10, 20);

kranthikumar
Автор

i cannot imagine the world without Neso Academy

adhamadel
Автор

The best explanation anyone can give are u guys in India ???

zameerahmed
Автор

Awesome explanation ....With best examples

digitalshamshu
Автор

great video and a great channel! Thank you for making C easier for me.

phoenixfucong
Автор

Excellent explanation and thank you for it. However, as a complete rookie, I would also like to know where a function pointer might be useful. Or, what the benefit over calling a function normally is.
Does using the function via pointer conserve memory?
Does it allow the processor to complete faster by being more efficient?

Sorry, but I'm a novice. Thanks again for the great vid.

guitchess