How to use dynamically allocated arrays

How to use dynamically allocated arrays

CodeVault

5 лет назад

71,195 Просмотров

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


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

@mrdiabeatis9943
@mrdiabeatis9943 - 27.08.2023 05:00

ok thanks for the actually really good explanation on arrays and memory

Ответить
@AlessioTanzi
@AlessioTanzi - 12.08.2023 17:40

Great job very clear video bro

Ответить
@road2grandchamp238
@road2grandchamp238 - 27.03.2023 10:44

Best explanation of this concept I have seen on the internet, it's simple yet in depth and in 11minutes I learned with what I was struggling on for hours

Ответить
@zbigniewloboda3393
@zbigniewloboda3393 - 04.12.2022 15:06

Too much talking, too much festoons and NO CONTENT!

Ответить
@unpatientes1562
@unpatientes1562 - 17.11.2022 01:52

i watched this video in my bed sleepy and still understood everything, you good at explaining man. thanks

Ответить
@andreasandreou2651
@andreasandreou2651 - 16.06.2022 03:27

broooo pls dont make that accent video exelent only with subtitles

Ответить
@Anotherandoman93
@Anotherandoman93 - 24.05.2022 00:39

You gifted bastard thank you so much! I've been trying to understand an exercise for an hour or so, no idea we could do this.

Ответить
@biodude9456
@biodude9456 - 22.04.2022 14:25

This video is pure gold.

Ответить
@NeoxHBG
@NeoxHBG - 14.04.2022 06:26

good video hermanito

Ответить
@plugonien7011
@plugonien7011 - 04.03.2022 23:16

Thank you very much

Ответить
@stonedcodingtom9097
@stonedcodingtom9097 - 16.02.2022 20:18

thx

Ответить
@james.d9647
@james.d9647 - 05.02.2022 01:31

Loved this video. Thanks!

Ответить
@kratostheinevitable3932
@kratostheinevitable3932 - 20.01.2022 00:10

you explain so well. thanks.

Ответить
@TheScoobysteve
@TheScoobysteve - 03.11.2021 08:49

I've seen this concept of realloc'ing memory by a factor of two until you have enough memory come up a fair bit. Is this some sort of best practice? Like a compromise between guaranteeing enough memory and not reallocating memory any more than necessary?

Ответить
@andrewmasden6352
@andrewmasden6352 - 31.08.2021 21:27

Thank you! Awesome video!

Ответить
@Sunshine_639
@Sunshine_639 - 29.07.2021 10:13

Why didn't you typecast the pointer returned by calloc and realloc?🙄

Ответить
@Recordingization
@Recordingization - 25.07.2021 21:11

in alloc all default values are assgined to 0. in realloc all values are copied from old memeory

Ответить
@Recordingization
@Recordingization - 25.07.2021 21:08

Cool,nice lecture!I also saw your video about malloc

Ответить
@spoofer9113
@spoofer9113 - 13.07.2021 07:27

This channel is growing to appear and I'm lucky to see it

Ответить
@sotirisioannou324
@sotirisioannou324 - 22.06.2021 17:42

You are the BEST!!!! I mean it. You have been of great assistance for my understanding of C!!!! THANK YOU ->BEST!!! Wish I had 10000 likes

Ответить
@nmgdragon4710
@nmgdragon4710 - 24.05.2021 16:05

my complier is saying , [Error] invalid conversion from 'void*' to 'int*' [-fpermissive]

Ответить
@georgichalakov6727
@georgichalakov6727 - 12.05.2021 18:23

Thank you!

Ответить
@T-She-Go
@T-She-Go - 20.04.2021 23:49

You know what sense is? It’s you. Thank you 🌸

Ответить
@7Mango033
@7Mango033 - 19.03.2021 14:57

Thank your for this video, it was very helpful. I'm still having problems with realloc(), but you helped me realize that it is not really necessary for my use case.

Ответить
@SirAbuser
@SirAbuser - 13.03.2021 04:29

How would one go about shrinking an array length and removing the excess elements/index’s? I’ve tried realloc but it doesn’t seem to work properly when giving it a smaller size. Example: array size of 9, populate each index, now shrink it from size 9 to size 4 while keeping index’s 0-3 and discarding the rest 4-8

Ответить
@Icy_Republic
@Icy_Republic - 21.02.2021 13:10

Best C tut I've come across. Great work !

Ответить
@Fanfacty
@Fanfacty - 27.01.2021 22:28

Great explanation!

Ответить
@xx_theartfuldodger_xx1105
@xx_theartfuldodger_xx1105 - 24.01.2021 04:20

What's great about your explanation you explain WHY you do it this way. When I understand the reasoning behind what I am doing I retain it so much better. Thank you!

Ответить
@kevinkkirimii
@kevinkkirimii - 04.01.2021 16:20

Man pointers make some times the work easier. Java is a problem.

Ответить
@ethnicsovereignty2369
@ethnicsovereignty2369 - 01.12.2020 18:00

Wonderful work, no plugging in your programs, straight to the point and well explained

Ответить
@pustai1627
@pustai1627 - 11.11.2020 20:47

mi-am dat seama din primele 10 secunde ca esti roman:)), bune tutoriale, mersi fain de ele!

Ответить
@Erik-tp3ht
@Erik-tp3ht - 24.09.2020 09:32

Very good explanation. It was quick and to the point. Glad I clicked on this video!

Ответить
@cdoggy007
@cdoggy007 - 22.03.2020 00:40

You're videos deserve MANY more views. I never comment on videos, but this was incredibly helpful and by far the clearest explanation I have come across. Thank you for this!!

Ответить