pointer typespointer holds the address of an


Pointer Types

Pointer holds the address of an object, permitting for the indirect manipulation of that object. They are used in creating linked data structures like lists, trees and management of objects that are dynamically formed during program execution.

  • Pointers are declared using the (*) operator. The general format is:

 type   *ptrname;

type can be of any data type and pointer name becomes the pointer of that data type.

e.g.

int    *iptr;

 char   *cptr;

float   *fptr;

The pointer iptr kept the address of an integer. In other words it points to an integer, cptr to a character and fptr to a float value

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: pointer typespointer holds the address of an
Reference No:- TGS0309290

Expected delivery within 24 Hours