Arrays and Pointers (1D Arrays)
Arrays and Pointers (1D Arrays)
Pointer arithmetic
"Meaningful" arithmetic operations are allowed on pointers.
• Add or subtract integers to/from a pointer. The result is a pointer.
• Subtract two pointers to the same type. The result is an int.
• Multiplying, adding two pointers, etc. don't make sense.