Computer Science · Computer Science Applications
Teaching Pointers in C/C++ to CS Freshman Students
See on the mapAbstract
Abstract- Pointers are one of the key features of the C and C++ languages which provide programmers flexible and powerful tools to manipulate data. Since pointers in C/C++ access data through their corresponding memory addresses, a program utilizing pointers may terminate with little useful error messages if any illegal address is accessed during run time. Experience from our teaching practice indicates that the pointer concept and its usage are difficult topics to grasp for CS undergraduate students. In this article we will discuss some advanced usages of pointers with respect to structures, functions, and objects and believe that it may be beneficial to both CS students and instructors in their teaching and learning practice.