Skip to main content Accessibility help
Internet Explorer 11 is being discontinued by Microsoft in August 2021. If you have difficulties viewing the site on Internet Explorer 11 we recommend using a different browser such as Microsoft Edge, Google Chrome, Apple Safari or Mozilla Firefox.

Chapter 14: Pointer

Chapter 14: Pointer

pp. 367-415

Authors

, Techno India Hooghly, West Bengal, , Techno India College of Technology, West Bengal
  • Add bookmark
  • Cite
  • Share

Extract

Any physical entity can be accessed by its name as well as its address. For example, if address of the building, ‘Chatterjee International Centre’ is ‘33A, Chowringhee Road, Kol-71’, then to mention the building we can say ‘Chatterjee International Centre’ or the building at ‘33A, Chowringhee Road, Kol-71’. The same concept is applicable for accessing variables also. This means even though we accessed the variables by its name so far but we can access them by their address also. In this chapter, we will discuss about the accessibility of the variables by means of their addresses.

(Note that ‘a building having address but not having any name’ is possible but ‘a building having a name but not having any address’ cannot exist. Similarly all variables should have a unique memory address, but a memory address not having a unique variable name can still be accessed by its address using the pointer pointing to it.)

POINTER

Pointer provides a flexible, powerful and efficient method to manipulate data in our programs. In C language, a pointer is a variable that can store the address of some memory location. Each memory location in the computer, i.e., in the RAM has an address. By storing that address a pointer variable actually points to or references the particular memory location where the data are stored. As now a pointer variable can be used to access memory locations, the content of the memory locations can be accessed and modified easily.

About the book

Access options

Review the options below to login to check your access.

Purchase options

Paperback
US$105.00

Have an access code?

To redeem an access code, please log in with your personal login.

If you believe you should have access to this content, please contact your institutional librarian or consult our FAQ page for further information about accessing our content.

Also available to purchase from these educational ebook suppliers