一个简单的问题

#include <stdio.h>
#include <stdlib.h>
int main(){
printf("%f",8.0/5.0);
system("pause");
return 0;
}

 

no.1 

8.0/5.0改成8/5

结果:0.000000

no.2

%f改成%d

结果-1717986918

posted @ 2015-04-01 09:39  锄,禾日当午  阅读(99)  评论(0编辑  收藏  举报