pointers1

pointers1 - cout << "value p points to: "...

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

View Full Document Right Arrow Icon
#include <iostream> using namespace std; main () { // declares a POINTER TO AN INTEGER int *p; int x = 200; p = &x; // p is made to point to the address of variable x
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 << "value p points to: " << *p << endl; // will output 200 since p points to variable x, which is 200 system("PAUSE"); }...
View Full Document

This note was uploaded on 03/17/2010 for the course CSCI 455 at USC.

Ask a homework question - tutors are online