446,330 Members | 1,572 Online
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,330 IT Pros & Developers. It's quick & easy.

power of two...

 P: n/a How to find the power of two (2 rais to n) in a single step??? Jun 11 '07 #1
12 Replies

 P: n/a Shraddha wrote: How to find the power of two (2 rais to n) in a single step??? Start with Google, it will help you with spelling. Jun 11 '07 #2

 P: n/a Shraddha said: How to find the power of two (2 rais to n) in a single step??? double single_step = pow(2, n); -- Richard Heathfield "Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.uk email: rjh at the above domain, - www. Jun 11 '07 #4

 P: n/a "Richard Heathfield" How to find the power of two (2 rais to n) in a single step??? double single_step = pow(2, n); Passing integer values to a function expecting double without a prototype in sight? Bye, Jojo Jun 11 '07 #5

 P: n/a On Jun 11, 6:29 pm, Shraddha

 P: n/a Joachim Schmitz said: "Richard Heathfield" Shraddha said: >>How to find the power of two (2 rais to n) in a single step??? double single_step = pow(2, n); Passing integer values to a function expecting double without a prototype in sight? The prototype is in Note also the absence of a function in which the code needs to be enclosed. -- Richard Heathfield "Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.uk email: rjh at the above domain, - www. Jun 11 '07 #8

 P: n/a Op Mon, 11 Jun 2007 16:20:51 +0200 schreef Richard Heathfield : Joachim Schmitz said: >"Richard Heathfield" >Shraddha said:How to find the power of two (2 rais to n) in a single step???double single_step = pow(2, n); Passing integer values to a function expecting double without aprototype in sight? The prototype is in Note also the absence of a function in which the code needs to be enclosed. Note also the absence of a compilation unit (or file) in which the function needs to be enclosed. -- Gemaakt met Opera's revolutionaire e-mailprogramma: http://www.opera.com/mail/ Jun 11 '07 #9