Function Pointers in C - How to Read and Write Function Pointer Types and use Dynamic Dispatch

  Рет қаралды 11,138

Kris Jordan

Kris Jordan

Күн бұрын

Пікірлер: 9
@grimvian
@grimvian Жыл бұрын
Ladies and gentlemen, this is how you teach. Kris is oozing with competence and pedagogical thoughts. I now feel comfortable with C and know about 19 different KZbinrs teaching C, but Kris takes teaching to a higher level. It's really nice that there's no fancy video editing or irrelevant noise or music - just bare teaching!
@marcoliebl3715
@marcoliebl3715 3 жыл бұрын
Thank you very much from a german IT student that now understands function pointers way better :-)
@vishvanathkarthi4311
@vishvanathkarthi4311 3 жыл бұрын
Damn! Thank you for this Kris. It is very helpful.
@UmmadikTas
@UmmadikTas 3 жыл бұрын
Thank you. I'm supposed to be doing my OS assignment but the video was really interesting xd
@philipphortnagl2486
@philipphortnagl2486 Жыл бұрын
great as always
@LingvoScienceUSA
@LingvoScienceUSA 10 ай бұрын
What's that plugin for C?
@jamiesandell4405
@jamiesandell4405 3 жыл бұрын
Great.
@lattehour
@lattehour 6 ай бұрын
it`s the same as with pointers to arrays you have to use parenthesis around the *name because * has lower precedence than ( ) ... how else would the compiler even know that you ain`t actually declaring a ptr return type , ps when you want to use a function as a parameter in a function implemention you dont even need the pointer just write the function in the declaration and when you call that function it`s generalized by default you can simply call it with any function as the type you used in declaration e.g void euler_method( double generic_F(int, int) , dbl a , dbl b ) you can have as many as you want in the param list thne you simply use your euler_method( sqrt , 5.5, 3.3) the main ideea behind all pointer types is based on 3 reasons 1. type checking, interpretation and arithmetics without encapsulating the type of the object inside the Pointer Metadata this can`t be done as the compiler has absolutely no means of understanding the memory layout to do the arithmetics , it has no way to interpret the bits is it a double or a long int ? and it can`t understand the intent because dividing a char string by 3 has no purpose or meaning it`s absurd
@lattehour
@lattehour 6 ай бұрын
ps in assembly you can only have 6 in the param list dont know in C only ever used 3
Design Principles with Pointer Parameters and Functions
41:17
Kris Jordan
Рет қаралды 8 М.
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,4 МЛН
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 31 МЛН
why do void* pointers even exist?
8:17
Low Level
Рет қаралды 372 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 315 М.
you will never ask about pointers again after watching this video
8:03
ARRAYLIST VS LINKEDLIST
21:20
Core Dumped
Рет қаралды 67 М.
Why are function pointers useful?
6:43
CodeVault
Рет қаралды 31 М.
Function Pointers | C Programming Tutorial
18:31
Portfolio Courses
Рет қаралды 63 М.
POINTERS in C++
16:59
The Cherno
Рет қаралды 1 МЛН