How to pass arrays to functions in C

preview_player
Показать описание
Passing arrays to functions is a simple task can get really confusing when the compiler tries to change the code for you or just doesn't behave the way you expect.

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

"You, my friend, are a POINTER." Love it!!!

kipster-llpo
Автор

OMG I FINALLY UNDERSTAND, THIS CONCEPT CAN BE SO HARD AND YOU MADE IT SO MUCH EASIER

pointles
Автор

Thanks for explaining! Was looking for this for a while

vgqogil
Автор

this was exactly what i was looking for, thankyou so much for explaining this to me

sufiyansadiq
Автор

you just point(put) your finger on the things that mostly matter. ARRAY POINTER. thank you for your effort

naboulsikhalid
Автор

it was helpful thank you.please upload more video about pointers and hard concepts in c/c++.

mehdirexon
Автор

You are amazing! Thank you for the understanding!

pokemaster
Автор

Pointers in disguise
arr[n] is actually just a way to write *(arr +n). Thats why you can be cursed and do stuff like 3[arr] and it still works. Its just pointer math

loonathefoxgirl
Автор

I love your videos please release more sir🙏

MuksEmmaN
Автор

I have an exam tomorrow, so best spent 5 minutes!

cristiandragusin
Автор

How do we create an Array of functions i.e an arrray consisting of functions parameters.
is this possible?

vectiphy
Автор

from the function the receive array as a pointer, how do u get the size or length of the array since it returns the 8 bytes

rechardnabo
Автор

How to change values of arrays in a function when they are passed like this - int** arr?

vytautaskuklys
Автор

What about the argv array passed in the main function? Where does that point?

numairdubas
Автор

what about multidimensional arrays? 8)

QuimChaos
Автор

and if i don't want to update the array values what should i do??

gonfreecs