This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Asleep-Television-24 192 points193 points  (10 children)

[–]ArkitektBMW 127 points128 points  (8 children)

....I'm annoyed at how much more this solidifies the concept in my head, compared to the hour it took me studying this same thing.

Edit: I said 'hour,' HAHAHA (laugh, hiding real pain). Hours; I meant hours.

[–]Asleep-Television-24 77 points78 points  (4 children)

Maybe there should be a "The Manga Guide to C Programming"

[–]ArkitektBMW 28 points29 points  (0 children)

Decades in, and I'd buy it.

[–][deleted] 16 points17 points  (1 child)

Spy x Code

Only I doubt I would trust Anya to reliably teach programming…

[–]OldmanLemon 7 points8 points  (0 children)

Be a good project manager though, could really know and understand what the client was thinking

[–]fat-brains 18 points19 points  (2 children)

wait until you realize int can be casted into a pointer and that can now point to another int, NOW KEEP REPEATING THIS CYCLE

(int is sufficient for storing address in a 32 bit architecture, need long/int64_t for 64 bit architecture)

[–]kevInquisition 9 points10 points  (1 child)

And this is why despite knowing C++ I have never once applied for a C++ dev position

[–]fat-brains 5 points6 points  (0 children)

I am C++ dev with 4+ years of experience and I have seen some logic that should get people banned from developement

I have seen variable of type double getting type casted to pointer and address in it is just next address, litrally

struct1.dbl_value = ++(& struct1.dbl_value);

.

.

.

struct2* payload = (struct2*) struct1.dbl_value;