C è¨èªã«ããããããæ¼ç®ã®åºæ¬ãã¯ããã¯ãèªåã®ããã«ã¡ã¢ã åºæ¬æé 以ä¸ã§ã¯ãæä¸ä½ã 0 ãããç®ã¨æ°ãã¾ããã¾ããn 㯠unsigned int åã¨ãã¾ããããã°ã©ã ä¸ãunsigned ã¨åæå®ãããã®ã¯ãunsigned int åã¨ãã¦å¦çããã¾ããå®æ°ã®å¾ãã«ãã U ã¯ããã®å®æ°ã unsigned int åã§ãããã¨ã表ãã¾ãã /* Nãããç®ãåãåºã */ (n >> N) & 1 /* Nãããç®ã«1ãã»ãããã */ n = n | (1 << N); /* Nãããç®ã«0ãã»ãããã */ n = n & ~(1 << N); /* Nãããç®ãå転 */ n = n ^ (1 << N); /* 0ãããç®ããN-1ãããç®ã¾ã§ããã¹ã¦1ã§ããåã®çæ */ n = (1 << N) - 1; /* å ¨ãããã®å転 (1) */ n = ~n /*
{{#tags}}- {{label}}
{{/tags}}