RE: C++ program of (a) power (b) without using builtin function
Sorry but your code and examples have errors.
First result variable is uninitialised and undefined in first example.
0**0 is undefined in maths.
O**-2 = 0
And your code doesn't check for overflows.
RE: C++ program of (a) power (b) without using builtin function