0
.1 / 2
представляет собой целочисленное деление.o
имеет целочисленный тип и в коде pow(*(*(a + i) + j), 1/o)
выполняется целочисленное деление, результатом которого у тебя будет или 1
, или 0
в большинстве случаев. Любое число в нулевой степени равно 1
, поэтому у тебя "Все время 1 получается".Otherwise, if E1 has a signed type and non-negative value, and E1 × 2^E2 is representable in the result type, then that is the resulting value; otherwise, the behavior is undefined.
1 / 2
. И почему будет именно так, как будет.1 / 2
? Почему результат будет именно таким? For example, when reading a 16-bit value on a 64-bit machine, a full 64 bits worth of data must still be read from memory.
потому что операции с частью регистра требуют вспомогательных действий
ah
и al
- это ровно такие же регистры, как и ax
их объединяющий, как и eax
вмещающий в себя ax
, как и rax
вмещающий в себя eax
. Это все - регистры. Просто они означают разные диапазоны одного и того же набора бит.GL_RENDERER
и GL_VERSION
.Otherwise, if E1 has a signed type and non-negative value, and E1 × 2^E2 is representable in the result type, then that is the resulting value; otherwise, the behavior is undefined.
Otherwise, if E1 has a signed type and non-negative value, and E1 × 2^E2 is representable in the corresponding unsigned type of the result type, then that value, converted to the result type, is the resulting value; otherwise, the behavior is undefined.
The value of E1 << E2 is the unique value congruent to E1 × 2^E2 modulo 2^N , where N is the width of the type of the result. [Note: E1 is left-shifted E2 bit positions; vacated bits are zero-filled. — end note]
Какие свойства отличают
union
отstruct
?Ты точно выбрал правильный формат памяти для записи позиций объектов?