Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory allocation

Status
Not open for further replies.

Taxidriver

Programmer
Jan 15, 2002
79
IT
Hello, supposing I have a structure like this:

struct node {
int data;
struct node *next;
}

if I define a pointer called *node that points to an object of the type "node" how much space should I allocate to the pointer and how that value is calculated?

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top