Right. You said "[] can be applied to any pointer." That sounds right.
What's this a few emails ago with [] being applied to immediate values in C99, like this
6[4] Fred Weigel wrote:
Marc sizeof is an operator arr evaluates to the base of the array. [] is an operator. since arr is the base of the array, (arr) is the same value (putting in the parentheses doesn't change a thing). The precedence is identical! so, if "sizeof arr[0]" works, then "sizeof (arr) [0]" should be identical. Since [] is higher precedence, "sizeof(arr[0])" is ALSO the same. And, just for grins, try: sizeof((arr)[0]) Of course, this is because [] is an operator in C, and not part of a variable construct. This means that any [] can be applied to any pointer. _______________________________________________ Tinycc-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________ Tinycc-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/tinycc-devel
