# include
# include
Int main ()
{
Double a, b, c;
Srand ((int) time (NULL));
A=rand ();
C=rand ();
B=rand ();
Printf (" % f % f, % d, c, a, b);
return 0;
}
CodePudding user response:
Read, inexpressible, floating-point Numbers and storage and integer is different, double length is 8 bytes, you read 4 bytes by way of integer, read bytes is 00 00 00 00 results nature of 0,
CodePudding user response:
I think that the compiler should be related to strong double can be converted to int, so finally a normal should not is 0, or would you like to write printf (" % f % f, % d, c, a, b) (int).CodePudding user response:
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.htmlI hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html