Introduction to C Worksheet #2 NAME: Due Tuesday, May 3, midnight Be sure to read Bitwise Operators.pdf first.. (1) Give
Posted: Thu May 05, 2022 1:37 pm
In C please, Thank you
Introduction to C Worksheet #2 NAME: Due Tuesday, May 3, midnight Be sure to read Bitwise Operators.pdf first.. (1) Given int x = 0b11010110; int y = 0xAA; int z = 0x85; Calculate the following. Convert all quantities to binary (and show the binary values) before doing the calculations. Show the answers in both binary and hexadecimal format. (a) x y BINARY: HEX: (b)~x & y BINARY: HEX: (c) z^y BINARY: HEX: (d) y >> 3 BINARY: HEX: (e) x << 2 BINARY: HEX:
Introduction to C Worksheet #2 NAME: Due Tuesday, May 3, midnight Be sure to read Bitwise Operators.pdf first.. (1) Given int x = 0b11010110; int y = 0xAA; int z = 0x85; Calculate the following. Convert all quantities to binary (and show the binary values) before doing the calculations. Show the answers in both binary and hexadecimal format. (a) x y BINARY: HEX: (b)~x & y BINARY: HEX: (c) z^y BINARY: HEX: (d) y >> 3 BINARY: HEX: (e) x << 2 BINARY: HEX: