Explain the pointer types, C/C++ Programming

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.


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


Posted Date: 6/28/2013 1:49:15 AM | Location : United States

Related Discussions:- Explain the pointer types, Assignment Help, Ask Question on Explain the pointer types, Get Answer, Expert's Help, Explain the pointer types Discussions

Write discussion on Explain the pointer types
Your posts are moderated
Related Questions
Write a program to define a matrix: 1. Write a function that takes an integer and calculates and returns the factorial of the integer. The Factorial of a number "n" is compute

Explain the Declaration of Multi Dimensional Arrays? In the figure, the range in the first dimension is 3 and in the second dimension is 4. The shaded portion corresponds to th

#questio#A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string

This problem familiarizes you with using random numbers in C++. The program is to compute a good approximation of π using a simulation method called "Monte Carlo". The following fi

write a program to find area of curve y=f(x) between x and x=b,integrate between the limits a and b using c     #include float start_point, /* GL

What is conversion constructor? explain it .

Programming Assignment #3: Vehicle Track Performance Tests Purpose: The purpose of this programming assignment is to give the student experience in using functions, arrays, and str

Develop G-code generating software Project Description: I'm presently using Slicer on a polymer jetting 3d printer. The toolpaths were thought out for FDM printers and thus a

write c++ program to decode the given code. in mobile keypad the integers from 1 to 9 will display the characters from a to z and 0 will assign a space