Feb 20 2008

Dynamic Output in C

Welcome to my blog :-) .If you’re new here, you may want to subscribe to my full RSS feed. Thanks for visiting!Dynamic output
consider the following program
 
 
#include<stdio.h>
int main()
{
long double a=3.14159265;
printf(”Value of pi=%.4Lf”,a);
return(1);
}
the output of the program will be
 
Value of pi=3.1416
wouldn’t it be nice if we allow the user to choose how the precession of the [...]