 |
C++ Passing Pointer to Function (Howto) + C++ Pointer Manipulation - Stack Overflow
bar = foo, is invalid, as foo is an int and bar a pointer. The correct code is "bar = &foo" because as a pointer, bar can only store memory addresses not an int. Sorry for the comment answers. – Tomas Cokis Sep 26 '10 at 1:14
stackoverflow.com |
 |