i need to store the number '00011' in an integer variable but since C++ considers the 3 zeros insignificant, it drops them by default and only the number 11 gets stored in the variable.. How can i store the binary number as it is...... can someone help.
im trying to write a function that manipulates each bit in the binary number. ... example if the number i entered is 11001, the function returns the first and second bit correctly but then it ignores the 0's and directly proceeds to the next signicficant bit which is '1' in this case. i hope i'm not confusing..
i want to be able to make the function return the 0 as well, if it is present in the binary number...
im trying to write a function that manipulates each bit in the binary number. ... example if the number i entered is 11001, the function returns the first and second bit correctly but then it ignores the 0's and directly proceeds to the next signicficant bit which is '1' in this case. i hope i'm not confusing..
i want to be able to make the function return the 0 as well, if it is present in the binary number...