Can someone explain me this code? It gives the reverse of the number we enter

The very basics of C family languages, operator % gives the remainder of its left hand side argument when divided by the right hand side one. So, n % 10 is n‘s last digit in decimal notation (for instance, 3 for 5123.)

Leave a Comment