Jump to content

Pointers to objects clarification

Go to solution Solved by Nineshadow,

Yes.

lets say we have

struct example
{
 int data;
 example* next;
 example* prev;
}

Does example* next/prev suggest, that we create a pointer that will point to a new object that will have all the members of struct example?

 

i5-4690k, R9 380 4gb, 8gb-1600MHz ram, corsair vs 550w, astrock h97m anniversary.

 

Link to comment
https://linustechtips.com/topic/621870-pointers-to-objects-clarification/
Share on other sites

Link to post
Share on other sites

Yes.

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×