I have structure:
typedef struct node {
char *question;
struct node *no;
struct node *yes;
} node;
Trying to get memory for structure pointer :
node *n = malloc(sizeof(node));
And got compile error:
a value of type "void *" cannot be used to initialize an entity of type "node *"
I told visual studio 2012 to compile C code - Compile as C Code (/TC)
How to solve this problem?