What is the difference among a pointer and a reference?, C/C++ Programming

A: A reference has to always refer to some object and, so, must always be initialized; pointers do not have such limits. A pointer may be reassigned to point to distinct objects whereas a reference always refers to an object along with which it was initialized.

 

Posted Date: 3/19/2013 9:02:16 AM | Location : United States







Related Discussions:- What is the difference among a pointer and a reference?, Assignment Help, Ask Question on What is the difference among a pointer and a reference?, Get Answer, Expert's Help, What is the difference among a pointer and a reference? Discussions

Write discussion on What is the difference among a pointer and a reference?
Your posts are moderated
Related Questions
the problem description. The order of the C Program should be as follows: Variables and constants Use #define statements to define the constants. Use arr

Just need the answers to the following 3 questions. "NO NEED to write a program compile or run it, do not need it. Just need the answers for the following questions. Example quest

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.

t a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with these

Project Description: 1) Develop banking software 2) Payment Gateway System There is some other system available for development. I'm willing to show long-term opportunity

Pointers are just numbers, representing addresses in memory. You can add to and subtract from pointers, for instance. It is pretty easy to make mistakes with pointer math, however,

Mixed Mode Expressions and Implicit type Conversions A mixed mode expression is one in which the operands are not of the similar type. In this case, the operands are converted

Can any constructor throw an exception? How to handle error while the constructor fails?

How would you print the values of the variables words and lines so they appear in the form: There were 6040 words and 680 lines. Here, 6040 and 680 represent the values of the two

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 of t