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

What is the factored form of x2 – x – 2? (x – 2)(x + 1) (x + 2)(x + 1) (x – 2)(x – 1) (x + 2)(x – 1)
Define expansionism in your own words
Questions 1 and 2:A pine cone is a natural hygrometer. When it is humid outside, the pine cone’s scales close up. When it is dry, the pine cone’s scales open up
first answer will get brainliest
Since x = 2.5, what does y = ?from the last quetsion
is friend capitalized of a end of a sentence.
What’s the answer for this?
Simplify 9x - 4 + 3x
A bag with 1/4 pounds of raisins will be used to fill snack cups with 1/32 pounds of raisins each. How many snack cups can be filled from the bag?
2x-10+x-6=2 combing like terms..