Reverse An Integer Number | C Programming Example

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

What happens when last digit takens as zero
Ex:- if i want to reverse a num 7890
What will the output




I run the program of 7890
I got the output as 987 but it doesn't show 0 at starting in reverse of a number. Could pls explain this.

bkarthik
Автор

Is there any way to do this without using a loop?

cobblie
Автор

what will this program do at as it's reversal will be out of int -datatype value limits.

kartikthakur
Автор

how to prevent signed integer overflow

akshaypundir
Автор

Try reversing a negative number with this programme :)

lumiplex
Автор

How to reverse an integer with leading zeroes or only zeroes?
Like :
Input: 009921
Ouput: 129900
Input: 000
Output: 000
Thanks in advance!

mxhell