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; }
Answers were Sorted based on User's Feedback
Answer / 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 |
Is there sort function in c?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
What are global variables and how do you declare them?
What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); }
what is difference between ++(*p) and (*p)++
17 Answers Accenture, HCL, IBM,
if function is declared as static in one source file, if I would like to use the same function in some other source file...is it possible....how ?
What do you mean by c?
Give the Output : * * * * * * * * * *
Why pointers are used in c?
7. Identify the correct argument for the function call fflush() in ANSI C: A)stdout B)stdin C)stderr D)All the above
What is the use of in c?
difference between c and c++