Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のgccコンパイラでは、unsigned long long (つまり 64 ビット) リテラルを次のように定義できます。
gcc
#define A_LITERAL 0x1ull
- - また - -
#define A_LITERAL 0x1llu
これら 2 つのリテラル ステートメントに違いはありますか。これは他の C コンパイラに共通ですか?
ullまたは、定数をandlluとして処理するようにコンパイラに強制します。 andの順序や大文字小文字は関係ありません。またはと書くこともできます。unsignedlong long integerlluLLUULL
ull
llu
unsigned
long long integer
ll
u
LLU
ULL