RE: RE: C++ program of (a) power (b) without using builtin function
You are viewing a single comment's thread from:

RE: C++ program of (a) power (b) without using builtin function

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.

@irelandscape: Sorry but your | Ecency