News for hackers. Stuff that matters.
Re:Having fun abusing the C language by mfukar on Tuesday October 25, 2016 @11:18AM (#12788664)

    subscripts are just adding to pointers, and since addition is commutative, then so is the subscript operator.
Only pointer arithmetic has nothing to do with integer arithmetic, a fact which has bitten countless people in the ass over the years.
Re:Having fun abusing the C language by qwertyuiop924 on Tuesday October 25, 2016 @11:44AM (#12788883)
No, pointer arithmetic has a lot to do with int arithmetic. And as in int arithmetic, pointer arithmetic is commutative.
Re:Having fun abusing the C language by mfukar on Wednesday October 26, 2016 @03:24AM (#12794568)
Alright, yes, they share a property and the syntax. I forgot we were in a programming courthouse.

In the real world, treating their semantics the same misleads newbies, and leads to bugs.

Re:Having fun abusing the C language by tinus_hn on Wednesday October 26, 2016 @08:19AM (#12795825)
Yeah, who would do such a thing! Especially in a piece of code written for the International Obfuscated C Code Contest! I demand that all code submitted for that contest be readable and unobfuscated!
Re:Having fun abusing the C language by mfukar on Thursday October 27, 2016 @02:48AM (#12803312)
Go vent someplace else.