Pointers as function arguments - call by reference

preview_player
Показать описание

In this lesson, we will see one of the use cases of pointer variables which is using them as argument to functions. We will describe the concept of call by value and call by reference.

Please see previous lessons here-

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

How are you not a professor? Your better at explaining things than some of the more pronounced professors at my school. Thank you very much, this is helping me prepare for CS1

jaifer
Автор

These four sections are created for each program. It will not be safe for programs to enter each other's memory. So, OS allocates memory for each application. The size of stack, text/code segment and global section is decided at compile time. Heap can grow during run time.
P.S: There are no stupid questions, there are only stupid answers. So, it's me who may be wrong. :)

mycodeschool
Автор

Literally blown my mind with some things I've been struggling to understand for a couple of years now...thank you so much!

jwj
Автор

Wow, literally had problems undersatnding pointers for like 8 months. Watching your videos on the topic really open my eyes. You deserve an award.

abuahchukwuedo
Автор

I could not have asked for a better explanation, thank you.

atanatirosgiliat
Автор

Who needs code with Harry ... You are the best ❤️

sahil
Автор

the amount of new things i learn from you instead of my school. i wish my school tuition goes to you

Donotmicrowavee
Автор

A perfect explanation to pointers and how to use. Even the video is 8 years old it still teaches valuable information, well done.

gultekinbutun
Автор

I'm watching the whole pointer playlist and I must say that these are the best I could find on the whole internet...
We are simultaneously learning about assembly (or low level stuff) which is awesome! Everything makes sense now and as I watch more videos, the clarification increases.

bayram
Автор

I'm Albert ;(.

Or rather, I was until I saw your videos :D.

kevinjohansson
Автор

you just explained functions, pointers, variables and the stack so clearly and visually in one video. extremely helpful - i could not thank you enough!

CherryMarz
Автор

two years of coding and its the first time to understand this part
beautiful work can you make a series on oop

georgenabil
Автор

Oooh man!!! Are U a Standfor's or MIT's or Harvard's Proffesor??? Your teching method is excellent, you explain very clear. I was crashing my brain trying to understand real uses for pointers and how they work in memory's computers. I got all of this pointers stuff clear right now thanks to you man. greetings from Mexico.

ermx
Автор

You rock!!! The expression after watching this tutorial will be:
" Right in the money baby"

Thanks for the perfect explanation.

aburridohp
Автор

Minor correction: your example is strictly speaking "call by pointer", not "call by reference." Call by reference would have the signature: "void increment(int &a)" and would be called using "increment(a);". Otherwise, great explanation - hope you continue sharing your teaching talent. I really appreciate your videos!

DaveJLin
Автор

9 years old video, still relevant to this day, thanks for making the concept of pointers crystal clear, god bless u, good man!

stardust
Автор

*My takeaways:*
1. Memory: heap, stack, static/global and code 4:21
2. *a* in the *Incremental* function is deleted before the program calling *printf* 8:20
3. Call by value 10:10
4. Call by pointer/reference 11:09

leixun
Автор

I cannot thank you enough, this cleared up so many days of confusion.. Really appreciate the effort you've put into these videos. Very valuable.

diahidvegi
Автор

You have solved what I have been confused with over the years, thanks for your contribution and efforts on great teaching! You are the best lecturer I have met so far and you should become a professional professor!

aw
Автор

I cannot explain how much I love you. Thank you so much! Your explanations are the best.

katiemartinez