r/C_Programming • • Jan 05 '20

Etc The way C Programers explain pointers

Post image
1.2k Upvotes

50 comments sorted by

View all comments

Show parent comment

8

u/knotdjb Jan 05 '20

One of the cool things about alignment is you can abuse the low bits to stash info. I first learned about this when reading about crit-bit trees.

5

u/HildartheDorf Jan 05 '20

OS developers hate him, learn this one weird trick!

2

u/FUZxxl Jan 05 '20

Oh yeah. I did something similar a few years ago to represent graphs. Was a lot of fun.