Remember kids, C is a thin layer on top of memory!

#C #programming #meme #array #NerdyJokes

@sibin how come it works like that?

str[1] is equivalient to 1[str]?
[] is commutative?

@pizzapal str[i] translates to “str+i” and since “+” is commutative, there’s no difference between that and “i+str”. 🤷🏽‍♂️
@sibin hmm, i guess that makes sense since the [] operator does the same thing as pointer arithmetic. i didn't know it was _that_ much the same though