A visual representation to better understand C pointers

less than 1 minute read

The notion of pointers is one of the most complex thing for students starting to learn C. In the context of classes I give at University of Strasbourg, I get interesting feedback from students from which I wrote a small document illustrating how to use pointers to implement a function swapping to integers. The main purpose of the document is to give a visual representation of the memory to understand how pointers behave on a trivial example. It is available here. Please, feel free to report any error or any suggestions you may have.