Math h C Tutorial

Item Value
Header filemath.h
Declarationfloat ldexpf(float num, int exp);double ldexp(double num, int exp);long double ldexpl(long double num, int exp);
Returnreturns the value of num * 2^exp.

#include 
  #include 
  int main(void)
  {
    printf("%f", ldexp(1,2));
    return 0;
  }
4.000000