Create Power Function C Program Code Example


Example 1: power func in c


The function pow() is used to calculate the power raised 
to the base value. It takes two arguments. It returns the
power raised to the base value. It is declared in
“math.h” header file.

Example 2: fuction power in c


int base = 3;
int power = 5;
pow(double(base), double(power));

Comments

Popular posts from this blog

C Perror Example

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"