what is the purpose of the code, and is there any problem
with the code?
int f( int n, int l, int r )
{ return (n << l) >> r; }
Answer Posted / senthil
f returns (n * 2^(l-r))
n<<l => n * 2^l
(n<<l)>>r => (n * 2^l)/(2^r)=>(n * 2^(l-r))
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
find out largest elemant of diagonalmatrix
Define and explain about ! Operator?
Explain the red-black trees?
What is the difference between typedef and #define?
What does %p mean c?
while initialization of array why we use a[][2] why not a[2][]...?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
Write a program to identify if a given binary tree is balanced or not.
What is a static variable in c?
What Is The Difference Between Null And Void Pointer?
Where we use clrscr in c?
Should I learn data structures in c or python?
What are valid signatures for the Main function?
hi, which software companys will take,if d candidate's % is jst 55%?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.