Given a variable num1, perform each of the following operations. Show all 8 bits positions in the

Question:

Given a variable num1, perform each of the following operations. Show all 8 bits positions in the masks.

A. Clear bits 5 and 6 .

B. Set bits 0 and 1 .

C. Toggle bits 2, 5, and 7.

D. Shift to the left 2 bits

E. Shift logically to the right 3 bits.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Guide To Java A Concise Introduction To Programming

ISBN: 978-3031228414

2nd Edition

Authors: James T. Streib, Takako Soma

Question Posted: