0 оценок0% нашли этот документ полезным (0 голосов)
6 просмотров1 страница
Bitwise NOT operator,, produces the complement of a binary value. Each bit that was set in the operand is cleared and each cleared bit is set: int x=0b00000101, z; z = x; / / z gets the value 00000101, or 5.
Bitwise NOT operator,, produces the complement of a binary value. Each bit that was set in the operand is cleared and each cleared bit is set: int x=0b00000101, z; z = x; / / z gets the value 00000101, or 5.
Bitwise NOT operator,, produces the complement of a binary value. Each bit that was set in the operand is cleared and each cleared bit is set: int x=0b00000101, z; z = x; / / z gets the value 00000101, or 5.
fisierul "Byte craft - first Step Whit Embedded Systems.
pdf", contine o gresala
la pag. 97. copy-pastuiesc: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ NOT Operations with Bits The bitwise NOT operator, ~, produces the complement of a binary value. Each bit that was set in the operand is cleared and each cleared bit is set: int x=0b00000101, z; z = ~x; // z gets the value 00000101, or 5 Example 45: The bitwise NOT operator ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ Aia rezulta din complement de 1 aplicat la variabila X???!!!!!!!!!! Mi-e teama sa mai citesc in contiunare, ca cine stie ce prostii mai vad!!! Sunt curios ce-i rezulta de facea complement de 2 :) atentie! >DJGPP<