hi,
i have 2 problems with using the malloc function:
1.the error i get: "variable-sized object may not be initialized"Code:int listValues[count] = malloc(count*sizeof(int));
2.the error i get: "expected expression before 'Node'"Code:Node node3 = malloc(sizeof(*Node));
how i defined Node:
can someone help me solve these errors?Code:typedef struct node_t* Node; struct node_t { int data; Node next; };