(e^B)^C=e^(B*C)
As we are obviously dealing with complex numbers, thats only true if C is an integer! Otherwise any complex number with magnitude e^(B*C) and argument any integer multiple of C*2*pi is result. If C is irrational thats even an infinte number of results.
But as the question is about solving that equation, your solution is valid nonetheless: if a is unequal to zero, x can be any value different from zero, otherwise x is undefined.