Today I was trying to print a double value with printf function using %lf specifier but I got 0.000000. But when I tried to print the same thing with %f specifier I got correct output. Why this happened? I use c++0x(c++11 I think.)
#include<stdio.h>
int main()
{
    double aaa;
    aaa=1.23;
    printf("%lf\n",aaa);
    printf("%f\n",aaa);
    return 0;
}

 
     
     
     
    