O'Reilly logo

C Programming Essentials by S. K. Bandyopadhyay, K. N. Dey

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

Chapter 6. Pointers

The use of pointers is one of the most powerful features in C. In this chapter, we present the basics of using pointers. The examples in this chapter will help in writing programs in C by efficient usage of pointers. It may simply be stated that a pointer is a variable that can point to another variable. More precisely, a pointer is a variable that can hold the address of another variable. So far, we have seen variables that hold a value of a specific type, viz. int, char, float. So, pointer variables are special in the sense that their usage is somewhat different than the variables we have discussed so far.

Defining a Pointer

As the use of pointer variables is different from other variables, there must be a way to indicate that ...

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