exp2 : exp2 « math.h « C Tutorial






ItemValue
Header filemath.h
Declarationfloat exp2f(float arg);
double exp2(double arg);
long double exp2l(long double arg);
Returnreturns 2 raised to the arg power.


#include <math.h>
  #include <stdio.h>

  int main(void)
  {
     printf("Value of e to the first: %f.", exp2(1.0));
  }
Value of e to the first: 2.000000.








19.16.exp2
19.16.1.exp2