Question: c++. please use only iostream library DE OPERATORS Example Example: Write a program that first reads an integer number (num), and another integer number representing
DE OPERATORS Example Example: Write a program that first reads an integer number (num), and another integer number representing the number of digits of a mask value (maskDigitCount). Next, the program will build up a mask based on the maskDigitCount as below: maskDigitCount = 4, mask = 2 - 1 = 15 maskDigitCount = 6, mask = 26 - 1 = 63 maskDigitCount = 7, mask = 2? - 1 = 127 Finally, the program will apply the mask over the num via the bitwise AND operator to calculate the masked value of the num, and print it out to the console. 10/20 FILE OPERATIONS
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
