Theocacao
Leopard
Design Element
Comment on "Intro to C Pointers and Dynamic Memory"
by Steffen Frost — Sep 28
I would make a small change to this

... 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
Back to "Intro to C Pointers and Dynamic Memory"
Design Element

Copyright © Scott Stevenson 2004-2015