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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 20, 2012 at 1:21 PM, Jeff B <a.GNUbie@xxxxxxxxxxxx> 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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux