为什么把char改成double结果就变了
#include <stdio.h>
int main()
{
char x=2.3;
int j=13;
int z=9;
char sum;
sum=j+z*x;
printf("%d",sum);
return 0;
}
#include <stdio.h>
int main()
{
char x=2.3;
int j=13;
int z=9;
char sum;
sum=j+z*x;
printf("%d",sum);
return 0;
}
2015-11-11
举报