Words
33
Reading
1 min
Listen
Play
8y
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.
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