Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
Ragged array
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
ranjitshs
New Member
Join Date:
Mar 2009
Posts:
6
#1
Ragged array
Mar 28 '09, 05:16 PM
How can we implement ragged array for integers in c
newb16
Contributor
Join Date:
Jul 2008
Posts:
687
#2
Mar 28 '09, 08:27 PM
It is a question?
Code:
int**arr = (int**)malloc(N*sizeof(int*)); for(i=0;i<N;i++) arr[i]=(int*)malloc(M*sizeof(int));
Comment
Post
Cancel
weaknessforcats
Recognized Expert
Expert
Join Date:
Mar 2007
Posts:
9214
#3
Mar 29 '09, 06:28 PM
I think you may be needing a chain-link table.
This is explained in Sedgewick's
Algorithm's in C++.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment