jasperzhouzihe2138 jasperzhouzihe2138
  • 03-02-2018
  • Mathematics
contestada

Assigned newbits with the opposite values of oldbits if flipbits is true. ex: if oldbits = [1, 1, 0, 1] and flipbits is 1, then newbits = [0, 0, 1, 0]

Respuesta :

kaliyahbenning2
kaliyahbenning2 kaliyahbenning2
  • 05-02-2018

Franck's answer is better (using ~), but I just wanted to point out that the conditional in yours is slightly redundant. It's easy to forget that, since you already have a boolean value, you don't need to perform a comparison in your conditional. So you could have just done this...

if x x = false; else x = true; end
Answer Link

Otras preguntas

6) Differences in create international tradeA) labour B) capital C)production cost D)income cost​
first person to correctly answer will get brainliest
Mothers and Daughters …Do you think mothers and daughters have a special bond. Disagree or agreed and why ?
what is the average rate of change?
Can someone help me with this
Which political party took up some of the Populist Party’s issues after its collapse?
i’m so desperate for help i have so many missing assignments and i’m so stressed please just help me get this done
If the effective mass of holes is greater than the effective mass of electrons in semiconductor material, Question 3 options: the intrinsic Fermi energy is slig
20 pint giveaway do you want more
Simplify the expression (2x- 9Xx + 6).​