If you want to reverse the number in 4 steps do -

Accept number
itoa
strrev
atoi

Such question Are Asked During Placements.