sách gpt4 ăn đã đi

Ngôn ngữ C không xác định và cú pháp

In lại Tác giả: Walker 123 更新时间:2023-11-30 14:54:49 27 4
mua khóa gpt4 giày nike

我在代码中找到了这个,但我从未遇到过像 & 这样的事情,仅 &&

if ((code & 1) == 1){

你能告诉我这是什么吗?

câu trả lời hay nhất

Đây là按位运算符。这意味着在比较发生之前已使用“代码”完成了一些操作。维基百科说:

A bitwise AND takes two equal-length binary representations and performs the logical AND operation on each pair of the corresponding bits, by multiplying them. Thus, if both bits in the compared position are 1, the bit in the resulting binary representation is 1 (1 × 1 = 1); otherwise, the result is 0 (1 × 0 = 0 and 0 × 0 = 0).

顺便说一句,有这样的线程,但关于 C++ 而不是 C,đây .

关于C语言未知&语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46468865/

27 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress