Pointers as function arguments - call by reference

Pointers as function arguments - call by reference

mycodeschool

11 лет назад

482,969 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Sriram Hariharan
Sriram Hariharan - 03.10.2023 00:24

I have never seen someone explain the concept of call by reference and value through stack(which is how it works in real life). kudos!!

Ответить
Anil Kumar
Anil Kumar - 30.03.2023 22:03

Call by pointer vs call by reference. ?

Ответить
Katie Martinez
Katie Martinez - 16.03.2023 22:00

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

Ответить
Aggeliki Katsifoli
Aggeliki Katsifoli - 18.12.2022 20:47

Can't i do that:
int increment(int);
int main()
{
int a=10;
increment(a);

}
int increment(int x)
{
x+=1;
printf("%d",x);
}

Ответить
Aditya Chandran
Aditya Chandran - 06.10.2022 13:10

that was a very great explanation. i wanted to call by reference a pointer but my program was not working.

Ответить
Stardust
Stardust - 04.10.2022 22:30

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

Ответить
Kaushik James
Kaushik James - 06.07.2022 12:01

call by refernece is clear now. u must start a coding school :D

Ответить
Francesca LaBonte
Francesca LaBonte - 22.05.2022 02:30

Great video. Thank you.

Ответить
Rajh Uddin
Rajh Uddin - 07.05.2022 23:37

Doesn't the "return" statement solve this issue?

Ответить
Shameer k
Shameer k - 24.04.2022 19:37

great

Ответить
Ömer PALABIYIK
Ömer PALABIYIK - 14.03.2022 00:08

I don't really comment that much, but this is pure perfection!!! RIP Harsha

Ответить
Alamgir Hossien
Alamgir Hossien - 10.01.2022 20:55

joi guru

Ответить
math_tutor
math_tutor - 18.12.2021 11:14

i couldnt understand the jargon of the C book and the endless stackexchange links. Your diagram is infinitely simpler. i finally understand memory allocation in C (or begin to understand)

Ответить
Betan Titan
Betan Titan - 25.10.2021 22:22

easy to understand and very useful

Ответить
Jeromy Classyca
Jeromy Classyca - 07.10.2021 14:33

This man is great af <3
can someone let me know what is he doing now ?

Ответить
Gultekin Butun
Gultekin Butun - 19.08.2021 09:19

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

Ответить
Atharva Deshmukh
Atharva Deshmukh - 03.06.2021 20:18

Thank you.

Ответить
Havyner Caetano
Havyner Caetano - 02.06.2021 00:53

THANK YOU! exactly what I was looking for

Ответить
Sahil
Sahil - 01.06.2021 13:04

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

Ответить
Alok Kumar
Alok Kumar - 29.05.2021 12:38

After 3 years working as a CS professional, I have finally understood call by value and call by reference lol

Ответить
The Moorish Movement
The Moorish Movement - 22.05.2021 06:26

Super

Ответить
Autostopem nie wiadomo dokąd
Autostopem nie wiadomo dokąd - 24.04.2021 18:52

could anybody explain why it is *p = (*p) + 1 and not *p = *p + 1? When i try to check the value of *p with printf its 10 so why we need () ?

Ответить
Nayan Gupta
Nayan Gupta - 23.02.2021 08:44

bhai bahut achaa kaam karte ho aap. thank you so much .

Ответить
Xiuxiu Li
Xiuxiu Li - 20.02.2021 09:58

"Albert! "...
me: yes, i m here...

Ответить
Mentor
Mentor - 14.02.2021 19:58

Hello sir Animesh thanks so much

Ответить
bayram
bayram - 08.02.2021 17:47

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.

Ответить
Dhruv Bala
Dhruv Bala - 03.02.2021 22:44

You're a hero!

Ответить
Aung Thiha
Aung Thiha - 06.01.2021 15:34

Thanks sir .

You are the best teacher in the world.

Ответить
Adriana Arizaga
Adriana Arizaga - 01.01.2021 06:04

Thanks a lot, you are the best on this !

Ответить
hupa1a
hupa1a - 29.12.2020 03:29

Man this is awesome

Ответить
Thekrazystuff
Thekrazystuff - 22.12.2020 19:40

This is the first time I understood what exactly call by reference is .... thank you so much.
Subscribed You

Ответить
Coin
Coin - 02.12.2020 22:41

Your precise explanations are putting collage professors to shame! Kudos to you

Ответить
A Banerjee
A Banerjee - 18.11.2020 08:04

summary :- Albert was a dumbass. He should've taken int as datatype for the increment function and later on returned a after the increment was done....In the main function, printing the function with argument ''a'' would've worked for him.....LOL

Ответить
Loriana Mesia
Loriana Mesia - 13.11.2020 18:31

I understood the video. What i dont get is why the codes we made in class, that have functions wriiten without pointers, still return the correct result. Could you maybe suggest another way to fix the increment function in this video not using pointers?

Ответить
Anji Wong
Anji Wong - 12.11.2020 10:04

That kinda reminds me of Rust

Ответить
Sam Dave Pollard
Sam Dave Pollard - 02.11.2020 11:55

I have several books on C, including those that are top rated on amazon.
These videos beat them all.
Exceptionally useful. Thank You.

Ответить
sakine barati
sakine barati - 20.10.2020 12:48

thank you so much for trainding

Ответить
sakine barati
sakine barati - 11.10.2020 16:47

thank you

Ответить
Danh Le
Danh Le - 30.09.2020 13:21

thanks man this is awesome l would love to give you a hug

Ответить
Anjali Khobragade
Anjali Khobragade - 21.09.2020 10:44

☹️☹️

Ответить
Thanh-GT Pham
Thanh-GT Pham - 17.09.2020 07:28

Hello bro, the method you show is called call by address. Call by reference is different.

Ответить
Avinash Vishwakarma
Avinash Vishwakarma - 06.09.2020 01:57

GOD LEVEL Explanation

Ответить
python enthusiast
python enthusiast - 23.08.2020 21:29

please just come backk ! okayy..??!

Ответить
Sankalp Naik
Sankalp Naik - 04.08.2020 10:14

sir which compiler is this.plzz answer.

Ответить
Sayantani Guha
Sayantani Guha - 01.08.2020 07:16

Please make a video like this for 2D Array 🙏🙏

Ответить
Subodh Kr Mazumder
Subodh Kr Mazumder - 12.07.2020 13:08

One word. WOW.

Ответить