This doesn't work in normal C either. (Whoops, yes it does.)

Code:
s.P = malloc(sizeof(int));



(C++) Visual Studio says...
"a value of type "void *" cannot be assigned to an entity of type "int *"

Last edited by AndrewAMD; 09/04/17 16:41.