you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 3 years ago* (last edited 3 years ago) (4 children)

Isn't NULL a macro in C for 0? So doesn't that mean these items are free?

  • source
  • hideshow 8 child comments
  • In a way it's still the same with more modern languages. Especially OOP, setting an object to Null is just setting the address pointer to to 0x00000000.

    Hence NullPointerException / NullReferenceException or similar, depending on the language.

  • source
  • parent