4 ms·
> a[b] is literally equivalent to *(a + b). You can thus write some absolute madness such as 41[yourarray + 1]. Wow. This has to be the best C obscurity that I
by haolez 7y ago
> a[b] is literally equivalent to *(a + b). You can thus write some absolute madness such as 41[yourarray + 1].
Wow. This has to be the best C obscurity that I've ever seen.
- ChuckNorris89 7y agoAs an embedded dev, I didn't know these things were actually obscure. Granted, we never used such things in production.
- _kst_ 7y agohttps://stackoverflow.com/q/381542/827263 https://stackoverflow.com/q/381542/827263 https://stackoverflow.com/a/18393343/827263 https://stackoverflow.com/a/18393343/827263
- multun 7y agoCome on, that might not be obscure for a C ninja master like you, but I'm pretty sure many people had no idea ;-) Notice how the list is sorted from actually obscure to less interesting. I even took the time to write a pseudo disclaimer above this one :D
- haolez 7y agoI wasn't being ironic :)
- deleted 7y ago[deleted]