PointerTest2

PointerTest2 - cout << "b = " << b...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> using namespace std ; int main() { int a, b ; int *c, *d ; a = 1 ; b = a + 3 ; c = &a ; d = c ; *c = a + b ; b = *d + 5 ; cout << "a = " << a << endl ;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout << "b = " << b << endl ; cout << "*c = " << *c << endl ; cout << "*d = " << *d << endl ; }...
View Full Document

This note was uploaded on 10/28/2010 for the course CSCI 1113 taught by Professor Staff during the Spring '08 term at Minnesota.

Ask a homework question - tutors are online