question regarding to C#include
#include
#include
int main()
{
int n = 3;
double *tptr = malloc(n*sizeof(double));
if (tptr != NULL)
free(tptr);
return 0;
}
got such error:
error C2440: 'initializing' : cannot convert from 'void *' to 'double *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
what's wrong with it? Thanks
I compiled and run it with cc and gcc under unix
and there is no problem.

You may say I'm a dreamer
but I'm not the only one...