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

write a C program, given number is double without using addt
ion and multiplication operator?ex:n=6,ans=12,pls send me ans
to goviseenu@gmail.com

Answer Posted / manoj sharma

You can use left bitwise operator.
Say if your no is n then n<<1 will return n*2.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can type-insensitive macros be created?

963


what are the facialities provided by you after the selection of the student.

2201


What is the data segment that is followed by c?

1050


List some applications of c programming language?

924


What is the use of function overloading in C?

1125


What is the right type to use for boolean values in c? Is there a standard type?

980


The __________ attribute is used to announce variables based on definitions of columns in a table?

1161


What is the difference between scanf and fscanf?

1220


What is static and volatile in c?

1194


Is it better to use malloc() or calloc()?

1085


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2830


explain how do you use macro?

1118


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

1011


Can include files be nested?

1079


How many bytes is a struct in c?

1125