单选题
阅读下面程序
public class Test2
public static void main(String[] args)
int a=10,b=4.c=20,d=6;
System.out.println(a++*b+c*--d);
程序运行的结果是
【正确答案】
C
【答案解析】[解析] 本题输出的值为a++*b+c*--d,++、--的优先级最高,相当于(a++)*b+c*(--d),由于a++中,++在变量a之后,先取值再自增,a++表达式的值为10,(a++)*b的值为40;又由于--d中,--在变量d之前,所以先自减再取值,--d的值为5,c *(--d)的值为100,所以(a++)*b+c*(--d)的值为140。