exp2: returns 2 raised to the arg power : exp2 « math.h « C / ANSI-C






exp2: returns 2 raised to the arg power


    

//Header file: #include <math.h>  
//Declaration: float exp2f(float arg); 
               double exp2(double arg); 
               long double exp2l(long double arg);  
 

  #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.*/ 

           
       








Related examples in the same category