I am looking for the C program for reverse the digits like below:
C
If i enter:
123456
Then the result would
strrev function reverses the string. If performance is not a problem then for instance you can do itoa, then strrev, then atoi. But the task is very simple even without strrev.