memesearch
C Pointer Alignment Chart

C Pointer Alignment Chart

Download Find similar pictures
Text on the meme
p[0] = x; p += 1; LAWFUL GOOD *p = x; p++; NEUTRAL GOOD p++; p[-1] = x; CHAOTIC GOOD (p++)[0] = x; LAWFUL NEUTRAL *p++ = x; TRUE NEUTRAL p++[0] = x; CHAOTIC NEUTRAL 0[p++] = x; LAWFUL EVIL *((p += 1) - 1) = x; NEUTRAL EVIL (~0)[p=~(size_t p)] = x; CHAOTIC EVIL
What it means

A nine-panel alignment chart categorizes equivalent-looking C pointer expressions as lawful, neutral, or chaotic. The joke is that increasingly obscure pointer arithmetic and operator precedence are treated like moral alignments, with the final expression becoming deliberately unreadable. It is typically shared by programmers as a reaction to cursed, clever, or needlessly complicated C code.

Objects
Tags
Sources
Template
Alignment Chart
Type
image
Size
800×640 · 65.6 KiB
Mood
absurd, nerdy
Language
en
Added

Similar memes