相思资源网 Design By www.200059.com
1.递增/递减运算符等价式
a=b++; <=> a=b;b=b+1;
a=++b; <=> b=b+1;b=b;
a=b--; <=> a=b;b=b-1;
a=--b; <=> b=b-1;b=b;
所以,a=5;b=6;var3=a++*--b,结果为25
2.带操作的赋值运算符等价式
a*=b; <=> a=a*b;
a/=b; <=> a=a/b;
a+=b; <=> a=a+b;
a-=b; <=> a=a-b;
a%=b; <=> a=a%b;
a&=b; <=> a=a&b; //从&=开始,下边都是逐位运算符
a|=b; <=> a=a|b;
a^=b; <=> a=a^b;
a=b; <=> a=ab;
a<<=b; <=> a=a<<b;
a>=b; <=> a=ab; //C#没有此运算符
a=b++; <=> a=b;b=b+1;
a=++b; <=> b=b+1;b=b;
a=b--; <=> a=b;b=b-1;
a=--b; <=> b=b-1;b=b;
所以,a=5;b=6;var3=a++*--b,结果为25
2.带操作的赋值运算符等价式
a*=b; <=> a=a*b;
a/=b; <=> a=a/b;
a+=b; <=> a=a+b;
a-=b; <=> a=a-b;
a%=b; <=> a=a%b;
a&=b; <=> a=a&b; //从&=开始,下边都是逐位运算符
a|=b; <=> a=a|b;
a^=b; <=> a=a^b;
a=b; <=> a=ab;
a<<=b; <=> a=a<<b;
a>=b; <=> a=ab; //C#没有此运算符
相思资源网 Design By www.200059.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
相思资源网 Design By www.200059.com
暂无JS的递增/递减运算符和带操作的赋值运算符的等价式的评论...