C - Pointers and Arrays3
Revision as of 09:30, 23 June 2015 by Jshankar (1 revision imported: EdWiki -- Emsys pages from Shukra)
Pointers and Arrays ...
- If pa points to a particular element of an array, then by definition pa+1 points to the next element, (pa+i) points i elements after pa, and (pa-i) points i elements before.
- An array-and-index expression is equivalent to one written as a pointer and offset.
- A pointer is a variable, so pa = ar and pa++ are legal. But an array name is not a variable; constructions like ar = pa and ar++ are illegal.