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

What is printf () in c?

809


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1774


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

855


What is the purpose of the statement: strcat (S2, S1)?

879


Can a local variable be volatile in c?

792


write a program to find the given number is prime or not

4335


Explain can you assign a different address to an array tag?

876


What are pointers?

882


What are the two forms of #include directive?

903


How can you access memory located at a certain address?

890


What language is lisp written in?

892


What is a structure and why it is used?

889


What is string in c language?

861


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2674


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1552