Загрузка видео...

Не удалось загрузить видео

На главную

Dynamic Arrays in C

645,996 просмотров • 2 лет назад •via X (Twitter)

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

Фото профиля Тsфdiиg
Тsфdiиg2 лет назад

The presented in the video code is not meant to be production ready. It's meant to convey the main idea of the approach. You actually want to pass xs by pointer and wrap it internally in parenthesis. I've put a better version in a gist:

Фото профиля Тsфdiиg
Тsфdiиg2 лет назад

Just 9 lines of code?

Фото профиля Kolt
Kolt2 лет назад

I believe this is how vectors work in C++?

Фото профиля Тsфdiиg
Тsфdiиg2 лет назад

Yes

Фото профиля Vjekoslav Krajačić
Vjekoslav Krajačić2 лет назад

But creating a new struct for each type! Surely, that makes you an unproductive programmer! /s

Фото профиля LLLL Colonq (man of letters)
LLLL Colonq (man of letters)2 лет назад

this is a nice video format, it's fast but the order of things flows very well

Фото профиля Qianqian Fang /房骞骞/
Qianqian Fang /房骞骞/2 лет назад

in the macro, what does "do{}while(0)" provide compared to just a pair of curly brackets {...}?

Похожие видео