To convert a one dimensional array into a two dimensional array using C

Discussion in 'Software' started by amrutha0303, Aug 3, 2010.

  1. amrutha0303

    amrutha0303

    Joined:
    Aug 3, 2010
    Messages:
    2
    Likes Received:
    0
    Hello There,
    i have a single dimensional array which i want to convert into a two dimensional array of size 5 by 5 using C.

    The single dimensional array is of the form: 1323132331112322123112323
    I want it in this form:
    1 3 2 3 1
    3 2 3 3 1
    1 1 2 3 2
    2 1 2 3 1
    1 2 3 2 3

    Can any one help? Any help is appreciated.
    Thanks.
     
    amrutha0303, Aug 3, 2010
    #1
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.