I wanted to know if there is any way of doing a variable in the power of another variable (or a constant) in C without using the math.h library. Like the operator ** in python for example.
Trying to raise a double variable in the power of a constant (or another double variable without using the math.h library).
The one operator C doesn't have is an exponent operator; you'll either have to use one of the
powfunctions:or, multiply it out by hand:
or, use a loop: