That's not how you did/do it in C either. You might have three nodes, but not three separate lists. (And even in C you probably didn't.)
Type: Posts; User: tabstop
That's not how you did/do it in C either. You might have three nodes, but not three separate lists. (And even in C you probably didn't.)
That is so amazingly not the way it should work, no. Each list needs to know its own size, so that you can actually build the list. Look what happens when you try to build list b: sz is already 1,...
Since sz is static, you only get one size, ever, despite the number of lists you create.
This is silly.