cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
& vs *
& vs *
Jan 21, 2013 at 2:51pm UTC
Script Coder
(1468)
Is there any difference between:
int
*i;
and
int
&i;
Jan 21, 2013 at 3:08pm UTC
Script Coder
(1468)
stupid question, nevermind.
Jan 21, 2013 at 3:08pm UTC
Darkmaster
(564)
http://www.cplusplus.com/doc/tutorial/pointers/
Jan 21, 2013 at 3:11pm UTC
vlad from moscow
(6539)
Yes, there is. In the first case there is used
*
while in the second case there is used
&
. For further details please see any book on C++.
Topic archived. No new replies allowed.