Can anyone explain me pointers to 2D array ?? I have to input array of string using and read them in another function but I am having a REALLY TOUGH time with pointersan anyone explin it to me or refer good guide to pointers ?? I am using borlnd c++ 3.0v.
atish00 0 Junior Poster
Recommended Answers
Jump to PostC++?
2D arrays of char?What about a reference to a std::vector of std::string ?
Easy, and safe!
Jump to Post> When accepting a multi-dimensional array as a parameter to a function, you must at
> LEAST include the size of each dimension except the last. You have the option of
> including the size of the last dimension if you wish.
Close. It's the first one which is optional, …
Jump to Post> int M[][20],row,col;
You need to specify a size here.> char* sum_r ()
Since you can't return arrays (not without dynamic allocation, or trickery, which you're not ready for), the easiest thing to do would be to pass the array where you want the answer stored as a …
All 10 Replies
Salem 5,265 Posting Sage
atish00 0 Junior Poster
atish00 0 Junior Poster
Alex Edwards 321 Posting Shark
mahlerfive 23 Junior Poster in Training
Salem 5,265 Posting Sage
atish00 0 Junior Poster
atish00 0 Junior Poster
fishky 0 Newbie Poster
Salem 5,265 Posting Sage
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.