Recurisons: CPP - Fast Power

can you teach me how 2 ^ 10 can be substituted,
till 2^9 i get 512 but for 2^10 when i square it iam getting different answer

Share your code via ide.codinglocks.com so that i can have a look. Or you can go through the blog here.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.