>using arrays
>>62182796
address+[offset] is the same as [offset]+address? It's almost like that thing these mathematicians were talking about https://en.wikipedia.org/wiki/Commutative_property
Does this work with multi dimensional arrays?
>>62182796
>>62183069
But why is iti[array] = 42;
then?
Shouldn't it be[i]array = 42;
???
>>62183986
Meh, bad wording..
Normal:
myArr[i] = 0;
Funky way:
i[myArr] = 0;
But why isn't it:
[i]myArr = 0;
?
>>62184028
because that's not how subscripts work
>>62184040
So "x[y]" is bascially the operation "x+y"?
I see..
>>62184062
No, it's the operation *(x+y)
>>62184076
Yeah, sorry for the interpunctuation.
still learning asm..
>>62184199
Source?
>>62182796
specify the language you're writing in next time, nigga
>>62185900
It may be strange but I knew what he meant without additional explanations, I didn't even notice that he didn't mention the language.
>>62185997
C is the only language which is so retarded
>>62186079
I don't find it retarded. It actually makes sense once you know the technical background such as memory mapping and memory layout.
>>62186216
C has no awareness of memory mapping. C predates memory segmentation.
>>62186216
>it makes sense if you know why that is
Yeah, same as ("2" + 1 == 21) making sense in JS if you know why it happens. Doesn't mean that it isn't retarded though.
(Note: example might not be true.)
>>62186288
It's a slightly different kind of example, C is on a lower level than JS and the majority of its limitations and quirks are due to the underlying hardware. Any variable is actually just an address to a some location in the virtual memory.