sus@programming.dev to Programmer Humor@programming.devEnglish · 17 hours agoStringly typedprogramming.devimagemessage-square78linkfedilinkarrow-up1469arrow-down110
arrow-up1459arrow-down1imageStringly typedprogramming.devsus@programming.dev to Programmer Humor@programming.devEnglish · 17 hours agomessage-square78linkfedilink
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up1·12 hours agoI believe, that would mean that any 0 is equivalent to the null pointer, since the null pointer is just memory address 0…
minus-squareqqq@lemmy.worldlinkfedilinkarrow-up2·edit-27 hours agoNot exactly “memory address 0”; there be dragons there. https://c-faq.com/null/index.html
Just cast it. /s
I believe, that would mean that any 0 is equivalent to the null pointer, since the null pointer is just memory address 0…
Not exactly “memory address 0”; there be dragons there. https://c-faq.com/null/index.html
In C that would make sense yes.