java技術博客

          jsp博客
          數據加載中……
          i++與++i的區別
          public class ppDemo
          {
              
          public static void main(String[] args)
              
          {
              
          int result=0;
              
          int p=2*result++;
              System.out.println(p);
              System.out.println(result);
              result
          =0;
              
          int y=2*++result;
              System.out.println(result);
              System.out.println(y);
              }

          }

          posted on 2008-11-03 14:37 郭興華 閱讀(126) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 宁都县| 邢台市| 福清市| 改则县| 阜宁县| 福泉市| 盐山县| 宣城市| 郓城县| 浦北县| 汉寿县| 和田县| 邯郸县| 偏关县| 华亭县| 汉阴县| 日土县| 丹江口市| 邛崃市| 安多县| 星子县| 赞皇县| 文山县| 安陆市| 景东| 修武县| 根河市| 龙陵县| 临沭县| 巴南区| 太谷县| 阜南县| 定安县| 手机| 姜堰市| 隆回县| 蓝山县| 楚雄市| 盈江县| 渝中区| 织金县|