Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 What will be the output of the program ? #include<stdio.h> int main() { float a=3.15529; printf("%2.1f\n", a); return 0; } ?->(Show Answer!)
1. What will be the output of the program ? #include<stdio.h> int main() { float a=3.15529; printf("%2.1f\n", a); return 0; }
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.01 pm
float a=3.15529; The variable a is declared as an float data type and initialized to value 3.15529; printf("%2.1f\n", a); The precision specifier tells .1f tells the printf function to place only one number after the .(dot). Hence the output is 3.2