What does the following program do when the input is unsigned 16-bit integer?
What does the following program do when the input is unsigned 16-bit integer? Correct Answer It prints binary equivalent of num
Using << (Left Shift Operation) bit Pattern of the data can be shifted by specified number of positions to left. When data is shifted left , trailing zero’s are filled with zero.
Also << has higher precedence than &.
Hence given code will print binary equivalent of the given number.
মোঃ আরিফুল ইসলাম
Feb 20, 2025