title: Is a malloc() needed before a realloc()?
body: <p>Since I had read realloc will act as malloc if the size pointed is 0, I was using it without malloc(), provided the pointer was static, global, or explicitly set to NULL if automatic.</p>
  
  <p>However, I notice a lot of programmers try to set it or set it to malloc(1). Is it needed?</p>