cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Pointer Point to Pointer?
Pointer Point to Pointer?
Jan 30, 2014 at 4:01pm UTC
jsbrowndog2013
(23)
Is this the correct format to point a pointer (pointer1) to another pointer (pointer2)?
&pointer1 = &pointer2
Im kinda rusty when it comes to pointers :P
Jan 30, 2014 at 4:20pm UTC
Jaybob66
(534)
no, you cant have the & on the left hand side.
if the pointers are of the same type you can just assign them.
p1 = p2;
Jan 30, 2014 at 4:20pm UTC
jsbrowndog2013
(23)
Thanks!
Topic archived. No new replies allowed.