C Programming - Bitwise Operators - Discussion
Discussion Forum : Bitwise Operators - True / False Questions (Q.No. 7)
7.
Left shifting an unsigned int or char by 1 is always equivalent to multiplying it by 2.
Discussion:
11 comments Page 2 of 2.
Nanu sundari said:
7 years ago
I think its wrong , its divided by 2
Ex: for right shift.
n>>2
N is number and 2 is right shift.
And is n*2^shift.
||ly same for left shift divide n/2^shift.
Ex: for right shift.
n>>2
N is number and 2 is right shift.
And is n*2^shift.
||ly same for left shift divide n/2^shift.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers