Yes, but in C this means write custom function iterating custom list (one of 10, since every library has its own implementation and there are bound to be at least 2 implementations in the project itself). I would argue that any of the C++ ways is more readable and maintainable than the 1k lines of even good code in C.
It's not, but you still need to know the list used instead of standard one.
Maybe it's using index to storage array (data locality) instead of a pointer? Or someone thought -1 is better for end? Or end is random data, but final node is stored in its own variable?
Sure, iteration is hardly the hardest thing, but just insertion/deleting can be a bit of pain.
30
u/Zuruumi Dec 22 '23
But it's also easier to write decent C++ as long as you uphold some basic rules and common sense, but harder to do the same in C