Back to course home
0% completed
Vote For New Content
The pow() function in C++ is exclusive to floating point types. You'd be better ...
Adam Sweeney
Aug 13, 2022
The pow() function in C++ is exclusive to floating point types. You'd be better off with a small function that does proper integer multiplication.
1
0
Comments
Comments
A
Adam Sweeney3 years ago
It would also be worth considering doing the C++ bitwise exercies with unsigned types so as to not run afoul of the sign bit.
On this page