当前位置:网站首页>i=i++;

i=i++;

2022-06-27 08:31:00 C_ x_ three hundred and thirty

    public static void main(String[] args) {
        int count=0;
        for (int i = 0; i < 10; i++) {
            count=count++;
        }
        System.out.println(count);
    }

count = count++   The principle is  temp = count; count = count+1 ; count = temp;    therefore count Always be 0 This is limited to java And c It's different

原网站

版权声明
本文为[C_ x_ three hundred and thirty]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270823529427.html