Pointers In 1 Minute

Опубликовано: 13 Июль 2026
на канале: RaheemCodes
30
0

In this video I try to explain pointers in a short and concise manner using a Powerpoint presentation. A pointer is basically a variable which stores an address of another variable. A pointer is declared using the * character, example: int *ptr. This can then be given a reference to a variable using the & character, example :ptr=&myVariable. Now that we have the address we can dereference the pointer to get or set the value *ptr=10, this changes the value at the address of myVariable to 10, in essence changing the the variable itself to 10. I hope you found this video helpful and understand pointers a bit better now.

#programming #tutorial #programmingtutorials #coding #code #cplusplusprogramming