Thread: Convert decimal to binary

  1. #1
    Registered User planet_abhi's Avatar
    Join Date
    Oct 2002
    Posts
    92

    Question Convert decimal to binary

    How i convert the decimal digit into a binary
    ANd what is malloc and calloc?
    AbHHinaay

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Code:
    int Variable;
    char Buffer[33];
    itoa(Variable, Buffer, 2);
    Malloc is used for dynamic memory allocation, 'getting' memory at runtime.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Converting 32 bit binary IP to decimal IP (vice-versa)
    By Mankthetank19 in forum C Programming
    Replies: 15
    Last Post: 12-28-2009, 07:17 PM
  2. binary to decimal
    By yigster in forum C Programming
    Replies: 2
    Last Post: 03-31-2009, 04:00 AM
  3. Convert 10.2 to binary
    By sara.stanley in forum C Programming
    Replies: 20
    Last Post: 02-08-2006, 09:22 AM
  4. Converting Decimal to Binary Numbers using Recursion
    By jaisch in forum C++ Programming
    Replies: 2
    Last Post: 10-24-2005, 10:33 PM
  5. binary to decimal
    By juancardenas in forum C Programming
    Replies: 1
    Last Post: 02-19-2003, 02:47 PM