Because 50 years ago, every computer scientist in the world sat in the same room and said, "What's a thing we can leave out of C, and every edition thereafter, that will make someone whose not even born yet question our collective wisdom?"
They came up with the exponentiation operator. And now, your question has borne the fruit of their labors. Thank you!
Or maybe the previous two answers are correct.
Why is there no exponentiation operator in c %26amp; c++?
Not a common enough operation, and ^ was already taken.
Reply:pow(base,exponent)
is a function can be used
pansy
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment