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 / guest

first it will call to n and then it will move on l or r, if
it is less then or equal to is there so it will return the
value ..... or else it will print the output

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is the best website to learn c programming?

584


What is size of union in c?

582


can we implement multi-threads in c.

670


How do you define a function?

584


Why do we need volatile in c?

749






What is typedf?

671


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

563


What is difference between && and & in c?

600


Write the Program to reverse a string using pointers.

619


Why do we use static in c?

634


Why is c not oop?

540


Why is it that not all header files are declared in every C program?

684


How do I copy files?

623


What is the size of enum in c?

624


What does p mean in physics?

586