I have a very quick function, but it only works for powers of 1.
int PowerOfOne(x)
{
return(1);
};
Hope that helps.
---signature---
People get ready.
I''m ready to play.
Fastest way to test if a number is a power of n?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement