In C and C++, it's always been important to express the idea of a NULL pointer--one that has no value. Oddly, in C++, the expression used, 0 (or NULL, always #defined to zero) was not even a pointer type. Although this worked most of the time, it could lead to strange and unexpected problems in what are, admittedly, rather edge cases. For example imagine you have the
Męska zawiść to straszna rzecz, ale to pomijam. Ten "szczypior" to najbardziej estetyczna sylwetka i wątpię, aby "byle który k--s" miał z 12% bodyfat. No ale to polska szkoła fitnesu: nie ważne, że gruby jak świniak, ważne żeby była siła xD #silownia
nullptrjest intem? #programowanieźródło: comment_WA63nP6rAaRrduJ2uzTvOnK9Ir2rukID.jpg
PobierzIn C and C++, it's always been important to express the idea of a NULL pointer--one that has no value. Oddly, in C++, the expression used, 0 (or NULL, always #defined to zero) was not even a pointer type. Although this worked most of the time, it could lead to strange and unexpected problems in what are, admittedly, rather edge cases. For example imagine you have the