does anyone know what the difference is between:
Code:
#include <iostream>
using std::cout;
using std::endl;
void func( int *p1, int* p2 )
{
p2 = p1;
}
int main(int argc, char* argv[]) {
int* p2;
int* p1 = new int;
func(p1, p2);
cout << "P1 Address: " << p1 <<
Leave a comment: