I am inspecting code that does not require explicitly casting result of malloc call but whenever I attempt to do this, the compiler throws an error.
i.e.
char *somevar;
somevar = malloc(sizeof(char) * n); //error
somevar = (char *)malloc(sizeof(char) * n); // ok