hi, beginner question
i am planning to write code for different values of a^b.
both a and b will vary in the program and both will be long long ints;
as my compiler wont allow pow(int,int) as it is ambiguous(dont know why)
either while have a as a double and cast it to LL int or just use multiplication
with a as LL int.
Sorry im rambling.
My question is how do i terminate the loop when a^b is
out of LL int range instead of it just returning me a garbage value and carrying on?
In other words b will have no limit will just break when a^b is too large.
sorry about the messy thread and thanks for the help in advance.
p.s has to be int as i'm going to do modular operations on it.