Pointers

As you know by now, variables are stored in memory. Each memory location has a numeric address, in much the same way that each element of an array has its own subscript. Variable names in C and other high-level languages enable the programmer to refer to memory locations by name, but the compiler must translate these names into addresses. A pointer is a variable that represents the location of a data item, such as a variable or an array element. Pointers are used frequently in C. Pointers can be used to pass information back and forth between a function and its reference point. In particular, pointers provide a way to return multiple data items from a function via function arguments. Pointers also permit references to other functions to be specified as arguments to a given function. This has the effect of passing functions as arguments to the given function.

new21

Pointers - OBJECTIVES

After going through this lesson you will be in a position to

  • explain address operator
  • define pointer declarations
  • describe pointers and one-dimensional arrays
  • define pointers and multidimensional arrays
  • explain arrays of pointers

Pointers - Index

  • THE ADDRESS OPERATOR
  • POINTER DECLARATION
  • POINTERS AS ARGUMENTS
  • POINTERS AND ONE MIDEMNSIONAL ARRAYS
  • ARITHMETICS ON POINTERS
  • POINTERS AND MULTIDIMENSIONAL ARRAYS
  • ARRAYS OF POINTERS
  • PASSING FUNCTIONS TO OTHER FUNCTIONS

Download complete study material of Pointers 'C'

Leave a Reply

Your email address will not be published. Required fields are marked *