Hi lately i have been studying the malloc and calloc functions for dynamically allocating memory. I thought the form was:
But then I stumbled onto this code snippet on a tutorial site:
#include <cstdlib> void *malloc( size_t size );
Why is the data type void?
Is my understanding of the malloc and calloc functions wrong or is this website wacky?
Oh and is the * after void for the pointer returned?