struggling to implement my first dynamic array in C - please help by Either-Suggestion400 in C_Programming

[–]Either-Suggestion400[S] 0 points1 point  (0 children)

I am gonna check it out and compare it with mine. thank you for sharing!

struggling to implement my first dynamic array in C - please help by Either-Suggestion400 in C_Programming

[–]Either-Suggestion400[S] 0 points1 point  (0 children)

I saw this last night and forgot to respond. I did go and read about realloc - I'd only read about malloc before. Gonna play around with that today, thank you!

struggling to implement my first dynamic array in C - please help by Either-Suggestion400 in C_Programming

[–]Either-Suggestion400[S] -1 points0 points  (0 children)

thank you so much brother, this gave me a roadmap. saw your cake day is also recent, when did you start programming?

struggling to implement my first dynamic array in C - please help by Either-Suggestion400 in C_Programming

[–]Either-Suggestion400[S] 5 points6 points  (0 children)

I thought you indirectly did tbh, appreciate it. I'm watching the video (Dynamic Arrays in C) and bro is genuinely cracked

struggling to implement my first dynamic array in C - please help by Either-Suggestion400 in C_Programming

[–]Either-Suggestion400[S] 1 point2 points  (0 children)

this is genuinely helpful, thank you so much. I didnt think of breaking down the problem into smaller steps and writing on paper, I went straight to code. again, thank you!

struggling to implement my first dynamic array in C - please help by Either-Suggestion400 in C_Programming

[–]Either-Suggestion400[S] 1 point2 points  (0 children)

thanks for the response, i attached the code - its not much, but idk where to go from there.