Arrays as function arguments

Arrays as function arguments

mycodeschool

11 лет назад

375,718 Просмотров

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


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

@jeswintobias8251
@jeswintobias8251 - 17.11.2023 19:11

who is watching it at 2023

Ответить
@justthathumanbeing
@justthathumanbeing - 30.09.2023 14:37

thank you !!

Ответить
@nathamuni9435
@nathamuni9435 - 15.08.2023 19:18

but ,

its showing

sizeof(A) = 8 , sizeof(A[0]) 4
Sum of elements = 3
sizeof(A) = 20 , sizeof(A[0]) 4
--------------------------------
Process exited after 0.6451 seconds with return value 31
Press any key to continue . . .

Ответить
@santiagobenitezperez5240
@santiagobenitezperez5240 - 16.07.2023 09:19

amazing video!

Ответить
@Aabara_ka_dabara
@Aabara_ka_dabara - 04.07.2023 17:43

great lecture sir......

Ответить
@kartikthakur6747
@kartikthakur6747 - 19.03.2023 16:25

Watching this at 6:54PM
Date -19/3/2023

Ответить
@codekarlebhai
@codekarlebhai - 11.01.2023 08:06

watching in 2023, still relevant and far better then other lectures out there on internet

Ответить
@computerscience8795
@computerscience8795 - 04.01.2023 16:13

thank you for creating

Ответить
@NoobsDeveloper
@NoobsDeveloper - 15.08.2022 22:07

Best every video watched in all the category of videos. Incredible!

Ответить
@animeshrastogi8315
@animeshrastogi8315 - 23.07.2022 23:33

Fantastic brother! Easy to understand.

Ответить
@atnguyenduy941
@atnguyenduy941 - 08.07.2022 04:32

Nicer

Ответить
@MMNayem-dq4kd
@MMNayem-dq4kd - 21.06.2022 12:05

You are a king😍

Ответить
@adityadalvi7884
@adityadalvi7884 - 06.05.2022 21:50

Thankyou

Ответить
@fardeenrazif9377
@fardeenrazif9377 - 27.04.2022 08:52

So when you pass arrays as function arguments, they are passed as pointer to integer

Ответить
@bdenix1997
@bdenix1997 - 08.01.2022 14:28

I was literally wondering why size of the array i get was different when i passed it to a function, calling sizeof inside of that function. and i got the exact answer i was looking for. ty.

Ответить
@t.sathwik5708
@t.sathwik5708 - 17.12.2021 19:33

this video cleared so many doubts regarding arrays as func.arguments

Ответить
@zayaerme
@zayaerme - 30.09.2021 21:59

Why can't we do dereferencing to *A in the SOE function if it is pointer to array element and find size of array from there?

Ответить
@MohidShaikh4444
@MohidShaikh4444 - 28.09.2021 06:04

How are we passing "int size" as a function argument, in the 2nd last lecture previous to this lecture, it was shown how "a = 10" wasn't incremented when passed as value. Then how come "int size" is being passed here without any issue. I am a noob so any help is appreciated.

Ответить
@elonmust6473
@elonmust6473 - 21.06.2021 09:34

Every useful and clear tutorial

Ответить
@sonalikumari8600
@sonalikumari8600 - 05.06.2021 15:42

How to delete element in an array using function sir plz me...🙏🙏🙏🙏

Ответить
@sanjeetagrawal9708
@sanjeetagrawal9708 - 29.04.2021 15:46

Excellent tutorial.

Ответить
@AlyMabrouk2012
@AlyMabrouk2012 - 22.04.2021 03:05

even after 8 years ,these tutorials are still masterpiece

Ответить
@md.ahmmed8811
@md.ahmmed8811 - 15.03.2021 17:57

The Hero we need but don't deserve <3
thank you

Ответить
@tusharikas5447
@tusharikas5447 - 08.03.2021 19:33

when I asked my friends about int a[] and int *a being treated similarly. I realised they had no idea about it! Your videos are too good.

Ответить
@kal5211
@kal5211 - 22.02.2021 20:39

My man.

Ответить
@chirag8503
@chirag8503 - 17.01.2021 12:52

how to pass elements using scanf()?

Ответить
@shivamverma9447
@shivamverma9447 - 11.12.2020 17:39

This video of 13min will clear all your doubts........This teacher is just amazing.....

Ответить
@turing_machine544
@turing_machine544 - 19.11.2020 09:26

He is a legend ..watching in 2020 (1st year college student)

Ответить
@dhirajmandal715
@dhirajmandal715 - 07.11.2020 20:30

Really very help full....thank u so so much 🔥👍👍

Ответить
@cap.blue-97sama99
@cap.blue-97sama99 - 04.10.2020 17:17

Thanks man!!

Ответить
@gabrielsales7402
@gabrielsales7402 - 09.09.2020 16:55

Why is my sizeof(A) returning 8 and not 4?

Ответить
@PraddyumnShukla
@PraddyumnShukla - 25.08.2020 09:05

Can somebody explain me that how A[ ] in sumofelements( ) is able to store the copied elements of A[ ] from main if it's size is only 4 ?

Ответить
@arokiajenifer5644
@arokiajenifer5644 - 08.08.2020 20:35

you are great sir

Ответить
@yuanwang9896
@yuanwang9896 - 14.07.2020 04:02

I have the SOE in function is size of a = 8 rather than 4. Does it mean my compiler assign a 64 bit RAM address to the pointer?

Ответить
@naineshrathod2392
@naineshrathod2392 - 13.07.2020 10:29

can anybody tell me which extensions to add in visual studio code in order to perform c & c++ programs

Ответить
@rudrararjkadel9765
@rudrararjkadel9765 - 06.07.2020 11:41

God Level !!

Ответить
@arjuntrivedi1771
@arjuntrivedi1771 - 12.05.2020 22:19

Alot to learn from these lectures. Great stuff.👏👏👏

Ответить
@TheDaca23
@TheDaca23 - 28.04.2020 19:19

Thank you very much! Best c tutorial on yt :D

Ответить
@sumitpal4450
@sumitpal4450 - 25.04.2020 16:11

Can we return an array through a fn??

Ответить
@lamebrisee
@lamebrisee - 20.04.2020 08:34

so clear and simple !! thanks a million :-)

Ответить
@appiahseth5319
@appiahseth5319 - 09.04.2020 03:21

wow. I've really understood the concept

Ответить
@thestarinthesky_
@thestarinthesky_ - 10.03.2020 19:49

Thank you Animesh Nayan. Very helpful. You are amazing.

Ответить
@tunamusic2314
@tunamusic2314 - 09.03.2020 11:42

I have a misunderstanding is that if we want to transfer all the array A[] into the function SumOfElements() what would we do? and why we make a line sumOfElements( A) then A is a pointer not an array, i dont understanding
Can anyone help me with this?
Thanks

Ответить