1. Write a program to populate a 10-element array with a mix of even and odd integers. Using a bitwise operator, print the even integers found in the array. 2. Write a program to check whether the...


1. Write a program to populate a 10-element array with a mix of even and odd integers. Using a bitwise operator, print the even integers found in the array.


2. Write a program to check whether the least signifi cant bit (LSB) of an integer is set.


3. Write a program that sets the bits 0, 1 and 3 of the integer 20. Save the result and then clear the same bits from the result.


4. Write a program to determine whether the nth bit of an integer is set, where n is obtained from the user.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here