Question: Briefly describe why pointer arithmetic is useful/beneficial (not just its definition). Additionally, what is the relationship between arrays and pointers? (hint: find a formula and
- Briefly describe why pointer arithmetic is useful/beneficial (not just its definition). Additionally, what is the relationship between arrays and pointers? (hint: find a formula and a written explanation) [3 pt]
- Think about how you calculated the actual difference (in bytes) between two addresses in C without any compiler warnings. Briefly explain why each step was necessary. [3 pt]
- Notice that the parameters to the function swapInts were both pointers. Explain why this is necessary. What would happen if the parameters were integers? [3 pt]
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
