Question: use c++ Assignment (13 points). Write a program that reads a single integer number (num), finds how many bits are needed to store this number
Assignment (13 points). Write a program that reads a single integer number (num), finds how many bits are needed to store this number using bitwise operators, and display the result. es num=5 5 = (101) base2, therefore 3 bits are required num = 280 280 = (100011000) base2, therefore 9 bits are required NOTES - At maximum, an integer in a 64-bit machine will require 32 bits input 6 Outputs 281 1133 9 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
