malloc returns a void pointer which is automatically gets converted to the correct data type right?
if so then why do we cast the return of malloc?
malloc returns a void pointer which is automatically gets converted to the correct data type right?
if so then why do we cast the return of malloc?