calloc() in C — a practical guide to C calloc with clear examples you can reuse in real projects.
C Programming Tutorial Series (65/102). Prefer one article? Read the complete C programming tutorial.
Short description
Helpful when you need clean buffers.
calloc
int *a = calloc(10, sizeof *a);