I'm studying about realloc and the syntax for it is:
void *realloc(void *ptr, size_t size);
but in many example of realloc being used the syntax they use is different ? for example
str = (char *) realloc(str, 25);
Can some one explain why there is such a difference ? why is there an extra "(char *)" in front of the realloc?