Topics / Linux System Programming / Q17
What is the difference between malloc() and calloc()?
malloc allocates uninitialized storage; calloc allocates an array and initializes its bytes to zero.
malloc allocates uninitialized storage; calloc allocates an array and initializes its bytes to zero.