Jayanam: C++ Pointers Tutorial for beginners

C++ Pointers Tutorial for beginners
This is a C++ beginner tutorial about pointers. I explain what a pointer in C and C++ is – basically it is just pointing to an address in the memory of your computer.

To change the value of a pointer, the memory to that the pointer is pointing to, you have to dereference it, which is also shown in the video.

After that I write a function to show how to change hte pointer’s memory inside of it by using it as parameter and in the end I create a pointer to a struct – a user defined type – the I create a dynamic memory on the heap.

I am coding the simple console application in visual Studio 2019 community edition and I run the program in the debugger so that you can see the values of the variables and also the memory in a memory window of visual studio.

If you like learning C++ with books I can recommend:
C++ in One Hour a Day
https://amzn.to/2YpuNNS

A good book for C++ and game programming is this one:
Beginning C++ Through Game Programming
https://amzn.to/2Yo9Q5S

See my social profiles here
G+: https://plus.google.com/+JayAnAm
Twitter: https://twitter.com/jayanamgames
Facebook: https://www.facebook.com/jayanamgames
Patreon: https://www.patreon.com/jayanam

Production Music courtesy of Epidemic Sound: http://www.epidemicsound.com

View on YouTube

Join the Discussion

Share your thoughts, ask a question, or tell us what you learned. Your first comment is reviewed before it appears. Once approved, future comments using the same name and email can appear directly, subject to spam checks.

Leave a Reply

Your email address will not be published. Required fields are marked *

Fix the Blender logo

Drag the loose piece into the missing part. A close fit is enough.

Loading verification…

Keyboard: arrows to move, Shift for fine adjustment, Enter to check. Verification only; movement is not stored. Logo: Blender.