By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,305 Members | 1,614 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,305 IT Pros & Developers. It's quick & easy.

Passing and returning 2D array to a function...

P: 17
My questions are about 2 dimensional arrays.

1. How to create a 2 D array dinamically ( getting its dimensions from the user ) ?

2. How to pass a 2D array to a function ?

3. How to return it from the function ?
Nov 8 '06 #1
Share this Question
Share on Google+
1 Reply


sicarie
Expert Mod 2.5K+
P: 4,677
My questions are about 2 dimensional arrays.

1. How to create a 2 D array dinamically ( getting its dimensions from the user ) ?

2. How to pass a 2D array to a function ?

3. How to return it from the function ?

1) First off, what is involved with reading in user input? Take that (I'll give you a hint, you have to assign it to something), and think about how you would declare a 2d array normally.

What do you think about the other two? (not that I don't love answering Programming 101 questions, but these are the types of things that if you're going to survive the semester, you need to know yourself)

If you show you've at least tried them, you're more likely to get help.
Nov 8 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.