All pastes #160389 Raw Edit

Mine

public cpp v1 · immutable
·published 2006-09-04 06:37 UTC
rendered paste body
#include <iostream>using namespace std;int main(){	int test = 5;	int * ptr = &test;	cout << "Location of int 'test': " << &test << endl;	cout << "Location of test (through ptr): " << ptr << endl;	cout << "Location of ptr (the pointer its self): " << &ptr << endl << endl;	cout << "Value of test: " << test << endl;	cout << "Value of test (through ptr): " << *ptr << endl;	return 0;}