Explain the difference between malloc() and calloc() in C?
S.no | malloc() | calloc() |
---|---|---|
1. | Does not initialize allocated memory | Fills allocated memory with zero bits. |
2. | Returns one single object | Returns array of objects |
BY Best Interview Question ON 06 Feb 2019