C Is Weird Too

C Is Weird Too
c-programming-memes, pointers-memes, array-syntax-memes, cursed-code-memes, programming-quirks-memes | ProgrammerHumor.io

Oh sweet heavens, the AUDACITY of C language pointer syntax! First panel: array[3] - absolutely logical, accessing the 4th element. Second panel: *(array + 3) - STILL FINE because arrays are basically just fancy pointers wearing a trench coat.

But then... THEN... 3[array]?! THE UNHOLY ABOMINATION THAT ACTUALLY WORKS?! Because in C's twisted reality, a[b] is literally just syntactic sugar for *(a+b), and addition is commutative so *(3+array) is valid. The character's face in the last panel is my soul leaving my body the first time I discovered this cursed knowledge.

More Like This