填空题 若a是float型变量,且a=6,则表达式“a/2+(int)(a+1)%2”的值为【6】

  • 1、
【正确答案】 1、4    
【答案解析】[解析] a/2的值为3,表达式(int)(a+1)%2的值为1,所以最后结果为4。