- Pow(float, int) returns float until C11 (per overload 4) but returns double since C11 (per overload 7) Although std::pow cannot be used to obtain a root of a negative number, std::cbrt is provided for the common case where exp is 1/3 Example.
- C C and Java programming tutorials and programs. You are here. Home » C programming » math.h » pow10 function in C.
- Funcion Pow En Dev C Plus
- Como Usar La Funcion Pow En Dev C++
- Funcion Pow En Dev C S En Dev C++ Ejemplos
Jun 16, 2016 This feature is not available right now. Please try again later.
- The C Standard Library
- C Standard Library Resources
- C Programming Resources
- Selected Reading
Description
The C library function double pow(double x, double y) returns x raised to the power of y i.e. xy.
Declaration
Following is the declaration for pow() function.
Parameters
x − This is the floating point base value.
y − This is the floating point power value.
Return Value
This function returns the result of raising x to the power y.
Example
The following example shows the usage of pow() function.
Let us compile and run the above program that will produce the following result −
In the C Programming Language, the pow function returns x raised to the power of y.
Syntax
The syntax for the pow function in the C Language is:
Parameters or Arguments
- x
- A value used in the calculation where x is raised to the power of y.
- y
- A value used in the calculation where x is raised to the power of y.
Returns
The pow function returns x raised to the power of y. If x is negative and y is not an integer value, the pow function will return a domain error.
Required Header
In the C Language, the required header for the pow function is:
Applies To
In the C Language, the pow function can be used in the following versions:
Funcion Pow En Dev C Plus
- ANSI/ISO 9899-1990
pow Example
When compiled and run, this application will output:
Como Usar La Funcion Pow En Dev C++
Similar Functions
Funcion Pow En Dev C S En Dev C++ Ejemplos
Other C functions that are similar to the pow function: