C Reference function pow()

Usage of pow():

double pow(double x, double y);


x cannot be negative if y is a fractional value. x cannot be zero if y is less than or equal to zero.

Source code example of pow():


		printf ("2 ^ 8 = %lf\n", pow (2,8));
		return 0;

Output of the pow example program above:

	2 ^ 8 = 256.000000

This entry was posted in C Reference math.h Functions. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed. Tweet This! Tweet This! or use to share this post with others.

Comments are closed.