O'Reilly logo

Just Enough C/C++ Programming by Guy W. Lecky-Thompson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Recap

Pointers are an integral part of advanced programming in C and string manipulation at every level. They are also an underlying part of understanding other C-based languages such as Java and C++. Using pointers is considered good practice, but you need to take care in order to use them effectively.

A pointer is just a reference to an area of memory. That area of memory has bounds only if a variable of a certain type is used to cast it into something that is understood by the program. This being the case, it is often easy to misinterpret the end of the memory block and then trespass into other areas by accident. This is the source of many bugs in C programs, the source of the most common of these being non-terminated strings.

Pointers are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required