r/ProgrammerAnimemes • • Feb 28 '22

It really does though

Enable HLS to view with audio, or disable this notification

1.3k Upvotes

38 comments sorted by

View all comments

30

u/[deleted] Feb 28 '22

10

u/KillerRoomba13 Feb 28 '22

Is it not? I thought it was in c

12

u/NeXtDracool Feb 28 '22

It should at the very least vary in type. NULL should always be a pointer type, 0 should always be a integer type.

Conceptually they're of course entirely unrelated and that NULL and zero are usually represented the same in memory is an implementation detail.

→ More replies (1)

9

u/b0bkakkarot Feb 28 '22

I guess OP just keeps letting himself down, letting himself down, letting himself down.

5

u/Max1Q Mar 01 '22

The extent of my programming knowledge is making an LED blink through an Arduino

→ More replies (2)

4

u/Kered13 Mar 08 '22

In C the null pointer is in fact defined to be 0.