Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 a keyword?

1172


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1777


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2449


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1725


How can I change their mode to binary?

1123


Write a code to generate a series where the next element is the sum of last k terms.

1229


How can I avoid the abort, retry, fail messages?

1138


what are # pragma staments?

2047


What does void main () mean?

1244


When should the const modifier be used?

1118


What does #pragma once mean?

1168


Explain what is the difference between #include and #include 'file' ?

1029


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3379


In a switch statement, what will happen if a break statement is omitted?

1069


Write a code to remove duplicates in a string.

1042