KwickClips C++ · 44 sec · free
What is a[i] the same as?
Short answer. *(a + i).
How can a function change x?
Pass &x.
Arrays and functions
| a[i] equals *(a + i) |
| Array name = first address |
| Pass &x to change x |
Remember
| Arrays are addresses |
| Pointers let functions change |
Is a of i secretly a pointer? Yes. Here is the link. A of i means star of a plus i. The array name is the first address. Pass ampersand x so a function can change x. Remember. Arrays are addresses. Pointers let functions change values.
This clip is from the full lesson: Pointers in C — 7 minutes, with the tables, the quick answers and the whole lesson in text.
Useful for: Programming All levels C, Programming All levels C, Programming All levels C, Programming All levels C
More KwickClips from this lesson
What does &marks give?41 sec
What does int *p declare?42 sec
How far does p + 1 jump for an int?43 secVoice-over is AI-generated; the script is written and checked by Kajal Ma'am. Confirm anything you plan around against your official board document. We never ask for a password or an OTP.

