... printf( "myNumber: %f\n", myNumber ); printf( "myNumberCopy: %f\n", myNumberCopy ); printf( "myNumberPointer: %f\n", *myNumberPointer ); } Here's the output: myNumber: 2.000000 myNumberCopy: 1.618000 myNumberPointer: 2.000000
... printf( "myNumber: %f\n", myNumber ); printf( "myNumberCopy: %f\n", myNumberCopy ); printf( "*myNumberPointer: %f\n", *myNumberPointer ); } Here's the output: myNumber: 2.000000 myNumberCopy: 1.618000 *myNumberPointer: 2.000000
Copyright © Scott Stevenson 2004-2015
by Steffen Frost — Sep 28
... printf( "myNumber: %f\n", myNumber ); printf( "myNumberCopy: %f\n", myNumberCopy ); printf( "myNumberPointer: %f\n", *myNumberPointer ); } Here's the output: myNumber: 2.000000 myNumberCopy: 1.618000 myNumberPointer: 2.000000
Change to
... printf( "myNumber: %f\n", myNumber ); printf( "myNumberCopy: %f\n", myNumberCopy ); printf( "*myNumberPointer: %f\n", *myNumberPointer ); } Here's the output: myNumber: 2.000000 myNumberCopy: 1.618000 *myNumberPointer: 2.000000