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

where are auto variables stored? What are the characteristics of an auto variable?

585


What is include directive in c?

638


How are variables declared in c?

597


What is the difference between call by value and call by reference in c?

614


What are the difference between a free-standing and a hosted environment?

737






How can I do graphics in c?

586


Explain the difference between getch() and getche() in c?

560


What does printf does?

738


What is the significance of an algorithm to C programming?

592


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

713


What are the different types of objects used in c?

568


What is difference between constant pointer and constant variable?

624


What is the size of enum in bytes?

579


Where does the name "C" come from, anyway?

639


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

3839