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

How can I ensure that integer arithmetic doesnt overflow?

1256


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

1171


what is bit rate & baud rate? plz give wave forms

2028


Explain the process of converting a Tree into a Binary Tree.

2725


Should I learn data structures in c or python?

1074


Are c and c++ the same?

1111


Who developed c language and when?

1137


When should I declare a function?

1214


What is the -> in c?

1069


What are register variables in c?

1052


What does the file stdio.h contain?

1119


What are the types of assignment statements?

1112


In C, What is the #line used for?

2333


Explain what happens if you free a pointer twice?

1138


write a program for the normal snake games find in most of the mobiles.

2309