Funcion Pow En Dev C++
These are implemented as macros in C and as functions in C: Classification macro / functions fpclassify Classify floating-point value (macro/function ) isfinite Is finite value (macro ) isinf Is infinity (macro/function ) isnan Is Not-A-Number (macro/function ) isnormal Is normal (macro/function ) signbit Sign bit (macro/function ). The pow function computes a base number raised to the power of exponent number. This function is defined in header file. Pow Prototype As of C 11 standard Since C11, if any argument passed to pow is long double, the return type Promoted is long double. If not, the return type Promoted is double.
- This function is overloaded in and (see complex pow and valarray pow). Additional overloads are provided in this header ( ) for other combinations of arithmetic types ( Type1 and Type2 ): These overloads effectively cast its arguments to double before calculations, except if at least one of the arguments is of type.
- This function is overloaded in and (see complex pow and valarray pow). Additional overloads are provided in this header ( ) for other combinations of arithmetic types ( Type1 and Type2 ): These overloads effectively cast its arguments to double before calculations, except if at least one of the arguments is of type.
- C pow The pow function computes a base number raised to the power of exponent number. This function is defined in header file. Pow Prototype As of C 11 standard Since C11, if any argument passed to pow.
- 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 −
Funcion Pow En Dev C Plus
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:
Funcion Pow En Dev C Gratis
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 File
- ANSI/ISO 9899-1990
pow Example
When compiled and run, this application will output:
Funcion Pow En Dev C 4
Similar Functions
Other C functions that are similar to the pow function: