Thread: Convert int array to char array ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    7

    Smile Convert int array to char array ?

    Hi all,

    I would like to ask about how could i convert efficiently an array of int to an array of char.

    Example:

    int intArray[3] = {0x12e45c78, 0xa453f4b4, 0xf7a4ka74};

    char chArray[8*4]; // because each int is 4 char.

    Now, how can i proceed to convert so?

    Thanks a lot.
    Last edited by ahmedBanihammad; 11-08-2010 at 01:10 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 14
    Last Post: 06-28-2006, 01:58 AM
  2. Need help understanding info in a header file
    By hicpics in forum C Programming
    Replies: 8
    Last Post: 12-02-2005, 12:36 PM
  3. getting a headache
    By sreetvert83 in forum C++ Programming
    Replies: 41
    Last Post: 09-30-2005, 05:20 AM
  4. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM
  5. Hi, could someone help me with arrays?
    By goodn in forum C Programming
    Replies: 20
    Last Post: 10-18-2001, 09:48 AM