What is malloc, calloc and free in C and C++?

preview_player
Показать описание
Video about the functions malloc, calloc and free in both C and C++. The differnces between them and how they are used.
Рекомендации по теме
Комментарии
Автор

The code at 0:35 has 1-byte buffer overflow, it should be
malloc(sizeof(char) * input + 1);
to store the null-terminator.

askoldmodera
Автор

legendary video. One of the videos of all time

PraneelMadhuvanesh-fi
Автор

Very good work. Ive never had it explained better.

lucianchauvin
Автор

Amazing job xDDDD and great animation! Thanks for making me understand the "difference" between malloc and calloc!

hayraza
Автор

I want all code videos to be like this

Liloulalalala
Автор

You know what, this actually helped me understand basic memory management then w3 schools did

paneledp
Автор

Me: "one more video before going to bed"
The video:

alexzhukovsky
Автор

Bro... That eagle creepy as hell. I actually might have to sue you for giving me PTSD lol.

NOBLENAGA
Автор

I'm actually fucking traumatized by this humanoid bald eagle thing

alexzhukovsky
Автор

my test stands no chance after watching this video

aleksandarjelenkovic
Автор

my favorite tech tuber. Now I'll free every memory cell with for loop :flag_us:

wanexline