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

General motors frequently asks its employees to measure such things as supervisor effectiveness. This is an od technique known as ____.
When you leave the bread out, _______ gets old
Amalia and sunil are infants at the same daycare center. An employee at the center notices that amalia cries loudly when her parents drop her off but that she d
Find the value(s) of k that will cause the equation to have the given number and type of solutions. 1. 5x^2 + kx + 5 = 0, 1 real solution 2. 3x^2 + 8x + k = 0,
israel is safer than what us city statistically
Where can the angle bisectors of an obtuse triangle intersect? i. inside the triangle ii. on the triangle iii. outside the triangle group of answer choices
What features of “Paul Revere's Ride” best support the answer to Part A?
please answer this!!
I need this please help me
if you want i got a lot to give away