Pass-by-Value vs. Pass-by-Reference

preview_player
Показать описание
Lilyana Staight describes the differences between Pass-by-Value and Pass-by-Reference.

CST 231-01
Project 3
Problem 1
Рекомендации по теме
Комментарии
Автор

THANK YOU, FINALLY FOUND SOMEONE WHO EXPLAINS SIMPLE AND FAST.

GDStudent
Автор

Excellent video. Your explanation is clear. Thank you!

sherryholloway
Автор

If I may add: The "&" sign is directly referring to the memory location of whatever variable follows the "&" sign. By doing so you change the value stored at that specific location in the computers memory.

gabryelconleynatividad
Автор

Great video. Finally made it click for me. Thanks!

joshclegg
Автор

Very simple and easy to understand. Thank you very much!

Tamama
Автор

thanx makes some sense now. if i understood it correctly, pass by value only reads the switch(girl) function when it is called in the main function or sentence, but pass by reference takes the switch(girl) function and applies it to the rest of the sentences where the variable in the switch(girl) function can be applied in the main function.

ammarsadeq
Автор

Thank you! This has been making me nuts. I get it now. Thanks, again!!

jeanahollings
Автор

thank you so much!! if only my lecture would use this kind of example...
haha

burhanmustafar
Автор

In pass by reference I don't think it changes the variable girl to the variable boy.  I think it just changes the value of the variable but not the actual name.

jokertangotj
Автор

it should be switch(&girl) even during the function call.

nagavikasch
Автор

you are awesome, i understand only nothing more . . .!!!

babydoll
Автор

great, im a boy and I like barbies, dressing up and tiaras

Ankhar
Автор

Nice little knock on boys' head at the very end.

JanithaRanawansa
Автор

love that and thank u for that, and ur smile is beautiful.

karanveersingh
Автор

Sir your views are better you can hide your subscribers

youupdate
Автор

While I was barely grasping the concept as a novice programmer, my brain was constantly shouting NO! NO! NO! throughout the video...

nikolaussmith-simmons
Автор

retaliation for underrepresentation of women in the tech industry by force feminizing the boy in "the code"?  Subtle.

No mention of the const qualifier on parameters and its side effects in suppressing the construction of temporary objects.

Would have been better with REAL code but if this were an interview I'd give her a pass on that.

AndrewOfMA