ã¤ã³ã¯ãªã¡ã³ãæ¼ç®å㯠2 éãã®ä½¿ãæ¹ããããpre-increment ã¯ä¸ã®ããã«å¤æ°ã®å¤ã 1 ã ãå¢æ¸ãããã®ã§ããï¼ï¼ï¼ï¼å¤æ°ï¼ã¨ããå¼ã®çµæã¯ãã®å¤æ´å¾ã®å¤ã«ãªããå¾ã£ã¦ï¼x = 3 ã®ã¨ãï¼a = ++x ã¨ããå¼ãããã¨ï¼ãã®å¼ã®å®è¡å¾ã¯ a = x = 4 ã«ãªã£ã¦ããã ãã 1 ã¤ã¯ï¼post-increment ã§ï¼å¤æ°ã®å¾ã« ++ ã -- ãä»ãå ´åã§ããããã®ã¨ãå¤æ°ã¯åã®å ´åã¨åæ§ã«1å¢å ããããããï¼å¤æ°ï¼ï¼ï¼ã¨ããå¼ã®å¤ã¯å¤æ´åã®å¤ã«ãªããå¾ã£ã¦ï¼x = 3 ã®ã¨ãï¼a = x++ ã¨ããå¼ãããã¨ï¼ãã®å¼ã®å®è¡å¾ã¯ a = 3ï¼x = 4 ã«ãªã£ã¦ããã ä»£å ¥æ¼ç®å ãªãï¼ä»¥ä¸ã®è¨è¿°ã§ y ã¯ä»»æã®æ°å¤ã«å¤æã§ããå 容ãæã¤å¼ã§ãããã¾ãï¼x = x * (y) ãªã©ã¨ï¼ä½å㪠(ã) ãä»ãã¦ããã®ã¯ï¼ x *= y+1 㯠x = x*y+1 ã§
{{#tags}}- {{label}}
{{/tags}}