Getting wrong printf output for floats

后端 未结 0 1726
灰色年华
灰色年华 2021-01-17 04:15

In the following:

float n1= 3.0;
double n2 = 3.0;
long n3 = 2000000000L;
long n4 = 1234567890L;
printf("%f %Lf %ld %ld\\n", n1, n2, n3, n4);
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题