Calling a function with a float argument modifies caller's state.

Ian Lance Taylor iant@google.com
Mon Aug 20 23:30:00 GMT 2012


On Mon, Aug 20, 2012 at 1:21 PM, Jeff B <a.GNUbie@myletters.us> wrote:
>
>     printf( "\n(int)floatVarA = %f\n", (int)floatVarA); // Prints 0.0

You are printing a value of int type using %f.  Don't do that.

Ian



More information about the Gcc-help mailing list