how to allocate memory for a two dimensional array dynamically please need code for that one
srinath.sec 0 Newbie Poster
Recommended Answers
Jump to Post>May be this can help
No, I don't think so.>void main()
http://www.cprogramming.com/faq/cgi-bin/smartfaq.cgi?id=1043284376&answer=1044841143>p=(int *)malloc(sizeof(int));
You're allocating exactly 1 element in a 1-dimensional array. That is not what the original poster was …
All 4 Replies
fulyaoner 0 Light Poster
vijayan121 1,152 Posting Virtuoso
rollingstones -1 Newbie Poster
John A 1,896 Vampirical Lurker Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.