The second week of programming.

This week we learned about pointers in C++. By adding a ‘*’ at the end of the data type you create a pointer. They are used to point on a memory address instead of a value.

If you add a ‘&’ at the front of the variable name you access the variables memory address and if you add a ‘*’ in front of the variable you will access the value of the pointer.

About Joakim Ädel

2014  Programming