How to use calloc and realloc for dynamic memory - C Programming Course STEP by STEP (26)

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Calloc and realloc are C programming language functions that complement dynamic memory management. Calloc is very similar to Malloc in its syntax and way of use, the big difference is that besides reserving dynamic memory, it assigns zero to all reserved values.
    On the other hand realloc or reallocation memory, allows you to change the size of the dynamic memory previously allocated.
    Today we talk about what are calloc and realloc functions and how they are used in C.
    The content:
    00:20 - What is calloc and how to use it.
    01:14 - What is realloc and how is it used?
    01:31 - Example of calloc in C programming language
    06:13 - Example of realloc in C
    Watch all the videos of the C course: • Aprende a programar 📙 ...
    See the C course repository: github.com/dfb...
    Facebook: goo.gl/HDLFyn
    Twitter: goo.gl/pcFziM
    #LearnProgramming #CourseOfC

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