S
Shraddha
How to find the power of two (2 rais to n) in a single step???
Start with Google, it will help you with spelling.Shraddha said:How to find the power of two (2 rais to n) in a single step???
With the shift operator (for integer values) or with pow() (for doubleShraddha said:How to find the power of two (2 rais to n) in a single step???
How to find the power of two (2 rais to n) in a single step???
Passing integer values to a function expecting double without a prototype inRichard Heathfield said:Shraddha said:
double single_step = pow(2, n);
How to find the power of two (2 rais to n) in a single step???
Shraddha said:How to find the power of two (2 rais to n) in a single step???
Passing integer values to a function expecting double without a
prototype in sight?
Shraddha said:How to find the power of two (2 rais to n) in a single step???
Joachim Schmitz said:
The prototype is in <math.h>
Note also the absence of a function in which the code needs to be
enclosed.
How to find the power of two (2 rais to n) in a single step???
user923005 said:I am guessing that what you are really asking is how to find out if an
integer number is an integral power of 2.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.