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

Jordan got 27 out of 90 correct on his test . What fraction of the marks did her get correct
ian is in training for a national hot dog eating contest on the 4th of july. on his first day of training, he eats 4 hot dogs. each day, he plans to eat 110% of
What does wrestled mean
Percent increase and decrease. Original number:45 New number: 18
Because genetics is now progressing so rapidly, it is revolutionizing medical research. Identify the subordinate clause in the sentence. A) is now progressing B
Queremos ir de fiesta, pero nosotros ________ ____ estudiar. A. Tenemos que B. Tienen que C. Tienes que D. Tiene que
NEED HELP ASAP PLEASE‼️‼️
Which of the following is not a personality trait? sincerity word processing punctuality laziness
A family went out to dinner and their bill was $113.If they want to leave a 19% tip, how much should they leave.
Graph the system of equations on your graph paper to answer the question. {y=−x+4y=x−2 What is the solution for the system of equations? Enter your an