Is armstrong Number

i am getting False for every input even when it is an armstrong number. Please tell me where i am wrong.

hello @tejuschaturvedi0

check now->

a) in ur pow function u need to initilase digit with 1
b) sizeof cannot get u number of digits in a given numbr
c) i will be zero after the while loop ends so dont compare sum with i
instead store i in some variable and then compare that variable with sum

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.