Thread: C program to find the reverse of a Given number

  1. #1
    Registered User
    Join Date
    Oct 2017
    Posts
    2

    C program to find the reverse of a Given number


  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Don't bother.
    6 minutes+ of ancient turboc running in dos box, along with void main and other train wrecks.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Yeah and one day the number is 1000 or somesuch and the "reverse" of that is printed as one.

    Use a string representation and reverse the string instead.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 02-27-2013, 01:43 PM
  2. Replies: 15
    Last Post: 12-01-2012, 11:15 AM
  3. Write a program to find the factors of any number entered.
    By rajesh10071986 in forum C Programming
    Replies: 5
    Last Post: 01-20-2010, 03:15 PM
  4. having trouble with reverse of a number program code
    By cooldude in forum C Programming
    Replies: 3
    Last Post: 09-07-2009, 05:49 AM
  5. Program to reverse a number. small error with it..
    By comproghelp in forum C Programming
    Replies: 8
    Last Post: 11-22-2004, 10:52 AM

Tags for this Thread