I am looking for the C program for reverse the digits like below:
C
If i enter:
123456
Then the result would
Read the number in a char array A with scanf("%s", A) or, better, with fgets and output the char array reversed by outputting each character starting from strlen(A) - 1 to 0.
A
scanf("%s", A)
strlen(A) - 1
0