Converting Integer to any base

Discussion in 'C Programming' started by Dexter, Mar 20, 2008.

  1. Dexter

    Dexter Guest

    Recently on a coding test , I was given a problem to write a program
    that converts an integer to any given base between 2 and 16
    (inclusive). I had written it in C# as this code is available to
    viewers at


    http://www.thinkanddone.com/prog/cs/integer2decimal.html

    Hope it finds it use for someone facing the same problem

    Asad
    Dexter, Mar 20, 2008
    #1
    1. Advertising

  2. Dexter

    Flash Gordon Guest

    Dexter wrote, On 20/03/08 08:09:
    > Recently on a coding test , I was given a problem to write a program
    > that converts an integer to any given base between 2 and 16
    > (inclusive). I had written it in C# as this code is available to


    <snip>

    I think you took a wrong turning somewhere. This is comp.lang.c, you
    will find the c# groups else where (C# is not C any more than Cobol is).
    I think they are on the 13th floor, but I could be wrong.--
    Flash Gordon
    Flash Gordon, Mar 20, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Sm9l?=

    CType(x,Integer) vs. Integer.Parse(x)

    =?Utf-8?B?Sm9l?=, Feb 6, 2006, in forum: ASP .Net
    Replies:
    7
    Views:
    5,947
    =?Utf-8?B?RGF2aWQgQW50b24=?=
    Feb 7, 2006
  2. =?ISO-8859-1?Q?Thomas_Gagn=E9?=

    No Math.min(Integer, Integer)?

    =?ISO-8859-1?Q?Thomas_Gagn=E9?=, Jul 29, 2003, in forum: Java
    Replies:
    0
    Views:
    502
    =?ISO-8859-1?Q?Thomas_Gagn=E9?=
    Jul 29, 2003
  3. Roy J
    Replies:
    2
    Views:
    448
    Andrew Thompson
    Jul 11, 2004
  4. Sebastian Stelzer

    How do I add an Integer to another Integer?

    Sebastian Stelzer, Oct 14, 2004, in forum: Java
    Replies:
    2
    Views:
    488
    Yu SONG
    Oct 15, 2004
  5. Dexter
    Replies:
    3
    Views:
    958
    Dexter
    Mar 20, 2008
Loading...

Share This Page