Nimrod Shai
Nimrod Shai

Reputation: 1179

malloc handling - identifier not found issue

I'm using visual studio to write a c code.

This is the malloc code line i was told to use:

root = (Coor)malloc(sizeof(Coor));

It doesn't let me use it for the following error:

identifier not found

Can anyone tell me why it happens and how to fix it?

Thanks,

Upvotes: 6

Views: 9739

Answers (1)

Steven Huang
Steven Huang

Reputation: 509

Please check if you have included <stdlib.h> and <malloc.h>.

Upvotes: 11

Related Questions