473,395 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Reference and Pointer

What is the difference between a reference and a pointer?

Apr 17 '06
51 4378
>eference means you want another name for an object. References are
not addresses. They are a different concept:


I dare say that Martin doesn't have problem understanding what the
concepts mean and what the differences are, but rather wording the
idea, that you can *emulate* refefence-like behaviour with pointers in
C, in a way that would satisfy your tastes.

What gets to me, is that this wording problem is turned into "proof"
that someone does not understand what he is talking about. I
understood, or would be so inclined atleast, that I understood
immediately what he meant. But then again, I didn't approach this
thread with nitpicking on my mind foremost.

Ofcourse it is great to straighten out incorrect statements and so on,
but is it really a sign of intelligence to to always for the sake of
argument to think the worst, not the best, of the people you are
debating with begs to be asked.

Who here, honestly, thinks that points and references are too difficult
a concept to give much problem understanding for a 15 year old, not to
mention adult which I'm pretty positive everyone participating seem to
be?

Just a thought. Now ofcourse, it's obvious that I don't know the
difference, right? :)

Apr 24 '06 #51
persenaama wrote:
eference means you want another name for an object. References are
not addresses. They are a different concept:

I dare say that Martin doesn't have problem understanding what the
concepts mean and what the differences are, but rather wording the
idea, that you can *emulate* refefence-like behaviour with pointers in
C, in a way that would satisfy your tastes.


I know a couple of people felt the same way as you *very* early, because
this issue isn't difficult to understand at all and those long
explanations I gave just seems completely to be a waste of my time now.

I guess it was just 2 morons who *didn't* want to understand anything at
all, that made this thread go a bit crazy in the end.
What gets to me, is that this wording problem is turned into "proof"
that someone does not understand what he is talking about. I
understood, or would be so inclined atleast, that I understood
immediately what he meant. But then again, I didn't approach this
thread with nitpicking on my mind foremost.


Unfortunately I was pretty slow a figuring out that those morons never
intented to understand anything at all - if I knew it at some earlier
point, I shouldn't have written all those long explanations for
"programming idiots" (not even "programming newbies", because in that
case I really don't mind helping other people with understanding issues)...

Basically all that is left is that I wasted a couple of hours on some
stupid idiots - And I'm really tired of that, because those idiots tried
to give the impression that they helped me with something - and they
didn't help me at all with anything...

So, I never understood anything of all their rubbish/nonsense. I mean:
If I begin to teach a 10-year boy something about a computer and that
boy tells all his friends that in fact he's teaching me something about
computers - that would be the same as here in this discussion.

Good thing that the kill-filter has been invented...
Best regards / Med venlig hilsen
Martin Jørgensen

--
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
Apr 25 '06 #52

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

110
by: Mr A | last post by:
Hi! I've been thinking about passing parameteras using references instead of pointers in order to emphasize that the parameter must be an object. Exemple: void func(Objec& object); //object...
9
by: Sandy | last post by:
Hi, In one of my interview I was asked a question, whether using pointers for argument is efficient then reference or not. i.e. void fun(Complex *p) void fun(Complex &ref) can somebody...
18
by: man | last post by:
can any one please tell me what is the diff between pointer and reference.....and which one is better to use ....and why???????
12
by: Mike | last post by:
Consider the following code: """ struct person { char *name; int age; }; typedef struct person* StructType;
13
by: al.cpwn | last post by:
I get that these two are different int* get() { static int m; return &m; } int& get() {
8
by: toton | last post by:
HI, One more small doubt from today's mail. I have certain function which returns a pointer (sometimes a const pointer from a const member function). And certain member function needs reference...
11
by: asdf | last post by:
C++ allows a reference to a pointer, but doesn't allow a pointer to a reference, why?
29
by: shuisheng | last post by:
Dear All, The problem of choosing pointer or reference is always confusing me. Would you please give me some suggestion on it. I appreciate your kind help. For example, I'd like to convert a...
41
by: Summercool | last post by:
Can we confirm the following? also someone said, Java also has "reference" like in C++, which is an "implicit pointer": Pointer and Reference --------------------- I am starting to see what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.