â [PG] char åã 30bit ãããã·ãããã Cè¨èªã®è©±ã§ããããã°ã©ãã³ã°ã®ã話ã ããã§è¨ã char å㯠8bit ã®åå®ç¾©ã¨ãã¾ãããããã 30 bit ã·ããããã¨ããã®ã¯åé¡ãªãã®ãã©ãããã¨ãã話ãã¾ãä»äºã®æä¸ã«ãããªè¨è¿°ãè¦ã¦ããããªãã§ã³ã³ãã¤ã«ã¨ã©ã¼ã«ãªããã®ï¼ãã¨ãªã£ãã®ãçºç«¯ãªã®ã§ããã Cè¨èªã«ããã¦ã®ãããã·ããã¨ã¯ãã¾ãä¸ã¿ããã«æ¸ã訳ã§ãã char x = 1; x = x << 2; char åã®å¤æ° x ï¼åæå¤1ï¼ã2bitåå·¦ã«ã·ããããå¤ã«ãããã®æå³ã§ããçµæçã« x = 4 ã«ãªãããã§ãããã¾ããã®å¾ã®å¤ã¯ãã¦ããã ããã§ã¯ã以ä¸ã®å¼ã¯è¨±ãããã®ãã¨ãã話ã char x = 1; x = x << 30; ãã㧠x ã¯ããã¤ã«ãªããã¨ããã¨ã x = 0 ã§ãã char å㯠8bit ãªã®ã§ãå½ç¶ãªããããã
{{#tags}}- {{label}}
{{/tags}}