/*
 * utilizando.cpp
 *
 *  Created on: Apr 19, 2009
 *      Author: blabos
 */
#include <iostream>

using namespace std;

int main(int argc, char** argv) {
    (void)argc;
    (void)argv;
    
    cout << endl << "Utilizando ponteiros:" << endl << endl;
	
	int x, y;
	int *px, *py;
	
	x	= 13;
	y	= 10;
	
	px = &x;
	py = &y;
	
	*px = 42;
	(*py)++;
	
	cout << *px << endl;
	cout << *py << endl;
	cout << (*px) * (*py) << endl;
    
    return 0;
}
