0

C: Printing float using printf

Posted by Joys of Programming on in C/C++

float in C is used to represent floating point numbers. It’s declaration is as simple as The following program shows how to print a float. Let’s check the output The output is upto a precision of 6 digits after the decimal point. This is a behavior by default which can be changed

Tags: ,

Copyright © 2009-2012 Joys of Programming All rights reserved.
Desk Mess Mirrored v1.8.1 theme from BuyNowShop.com.