so when it null
we cant access the sub variables
so when it null
we cant access the sub variables
No. NO. And No. Root is NOT of a complex type. It is a pointer, which is a simple type. ALL it stores is an address. It does not have sub-fields, or anything like that.
Try using root.lc in your code somewhere. Notice how it doesn't work? That's because root is not a struct node. It is a pointer.
You cannot access any valid information or instance of the data because the pointer will not be pointing to a valid instance of the struct.
Or in other words - it is like having an address to a house in... nowhere. How do you get the information from within the house if you cannot find the house?
The pointer is the address and it points to the house.
thanks i understand this now
Wow... you made tabstop upset. Kudos to you for that.
Much. Thanks. Its good to see code that is illiterate blond, friendly.Originally Posted by Elysia
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.