Please send questions to
st10@humboldt.edu .
/*
signature: main: void -> int
purpose: to play with pointers
examples: when you run this program,
the following should be printed to the
screen:
num_ptr is: <an address>
*num_ptr is: 13.7
weight is: 13.7
NOW:
num_ptr is: <same address>
*num_ptr is: 25.8
weight is: 25.8
by: Sharon Tuttle
last modified: 11-30-10
*/
#include <iostream>
using namespace std;
int main()
{
double *num_ptr;
double weight = 13.7;
num_ptr = &weight;
cout << "num_ptr is: " << num_ptr << endl;
cout << "*num_ptr is: " << *num_ptr << endl;
cout << "weight is: " << weight << endl;
// to be COMPLETED in class on Thursday
return EXIT_SUCCESS;
}