Why Conversion Specification %lf does not work for Double in printf
I am writing a very small code just scanf and printf . I am reading a double value and printing it. The conversion specification %lf works properly to read a double value. But, it doesn't work with printf. When I am trying to print that value I am getting output like 0.000000 double fag; scanf("%lf", &fag); printf("%lf", fag); But, if I use %f in printf it works properly. cremno The C standard library implementation you're using doesn't conform to C99 (or newer). The changes listed in the foreword (paragraph 5) contain: %lf conversion specifier allowed in printf The description of the l length