1
1

More than 5 years have passed since last update.

C言語上での char のビットサイズ

Posted at

C言語では、sizeof(char) == 1 だけれども、その char にどれだけビットが入っているかは実装依存。それがいくつかは、

#include <limits.h>

CHAR_BIT

で取得できる。

1
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1