首页 > 试题广场 >

假设有“int x=1;”,以下哪个代码导致“可能损失精度,

[单选题]
假设有“int x=1;”,以下哪个代码导致“可能损失精度,找到int需要的char”这样的编译错误?
  • short t=12+'a';
  • char c='a'+1;
  • char m='a'+x;
  • byte n='a'+1;
为什么呀
发表于 2020-10-16 18:53:45 回复(0)
C
发表于 2020-06-14 20:18:23 回复(0)
C
发表于 2020-02-13 19:57:12 回复(0)