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.
2 つの値を比較したい 両方ともタイプ uint8_t A[8] = uint8_t B 両方に同じデータが含まれていますが、1 つの変数は continat であり、もう 1 つは 1 つのブロックであり、もう 1 つは配列です。
これは不可能です。は 8 つの異なるのA配列ですが、は 1 つの値のみです。uint_8B
A
uint_8
B
Aただし、次の構文を使用して配列の内容を比較できます。
A[0] == B; A[1] == B; ...
これらはそれぞれ、等しい場合は 1 (または true) を返し、等しくない場合は 0 (または false) を返します。