Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > To convert a one dimensional array into a two dimensional array using C

Reply
Thread Tools

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

 
 
amrutha0303 amrutha0303 is offline
Junior Member
Join Date: Aug 2010
Posts: 2
 
      08-03-2010
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is it possible to cast a one dimensional array to a two dimensionalarray? SamL C Programming 5 03-17-2009 06:05 AM
How do copy Strings from a single dimensional array to double dimensional array Venkat C++ 4 12-05-2003 09:23 AM
Re: Two dimensional pointers and Two dimensional arrays Icosahedron C++ 8 08-21-2003 05:15 AM
Re: Two dimensional pointers and Two dimensional arrays John Harrison C++ 4 08-19-2003 04:00 PM
Re: Two dimensional pointers and Two dimensional arrays Alf P. Steinbach C++ 0 08-18-2003 08:25 AM



Advertisments