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
1 PETTERN1 (Pettern1.c)   main() {           int i,j,k=1,a;           clrscr();           for(i=1;i           {                    if(i>=3)

This task involves creating a new class(es) that will allow the system to playback pattern sequences using the Neo  Freerunner  hardware. The first thing to note is that the vibrat


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. The area under a curve between two points can b

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

Write a simple telephone book program that stores the names and phone numbers of your friends/acquaintances in a file. Your program should have the abilities to: a. Add entries (n

Stage One Define the specification of the program            Add two nxm size matrices   Stage Two Divide the program up into separate modules           Input Matrix         Ad

What is conversion constructor? explain it .

Comments Comments are integral part of every program . Comments help in coding, debugging and maintaining a program . The compiler ignores them. They should be used liberally i

implement two stacks in one array A[1...n] in such a way that neither stack overflows unless the total number of elements in both stacks together is n. For this you need to produce