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...

Give a fast way to multiply a number by 7

Answer Posted / rajan

ANU is right the answer is x<<3 -x
when you left shift any number by 1 it is equivalent to
multiplying with 2.
so, left shift by 3 means ur are multiplying with 8.
and x*7 = x(8-1) = x*8-x = x<<3-x .

Is This Answer Correct ?    31 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a pragma?

1131


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

1473


Explain how do you use a pointer to a function?

1111


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2076


What is the size of a union variable?

1054


What are the advantages of using Unions?

1121


When should structures be passed by values or by references?

1043


What is #pragma statements?

1102


Explain what is the advantage of a random access file?

1124


How do shell structures work?

1116


How can I use a preprocessorif expression to ?

1065


What is the difference between the = symbol and == symbol?

1125


c program for searching a student details among 10 student details

2093


Which one would you prefer - a macro or a function?

1087


Why is it usually a bad idea to use gets()? Suggest a workaround.

1789