Difference between revisions of "C - Pointers and Arrays3"
m (1 revision)
m (1 revision imported: EdWiki -- Emsys pages from Shukra)
Latest revision as of 09:30, 23 June 2015
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.