Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Dynamic Arrays in C

645,927 görüntüleme • 2 yıl önce •via X (Twitter)

7 Yorum

Тsфdiиg profil fotoğrafı
Тsфdiиg2 yıl önce

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 profil fotoğrafı
Тsфdiиg2 yıl önce

Just 9 lines of code?

Kolt profil fotoğrafı
Kolt2 yıl önce

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

Тsфdiиg profil fotoğrafı
Тsфdiиg2 yıl önce

Yes

Vjekoslav Krajačić profil fotoğrafı
Vjekoslav Krajačić2 yıl önce

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

LLLL Colonq (man of letters) profil fotoğrafı
LLLL Colonq (man of letters)2 yıl önce

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

Qianqian Fang /房骞骞/ profil fotoğrafı
Qianqian Fang /房骞骞/2 yıl önce

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

Benzer Videolar