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

copying contents of 1 dimensional array into 2 dimensional array in such a way that t

P: 1
Full program program in c++ to copy 15 elements of 1 dimensional array into 2 dimensional of size 5*5 in rowwise manner in such a way that all numbers above primary diagonal are 0
Dec 24 '15 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 2,404
Suggest you draw the two arrays on a sheet of paper. Identify the contents of the 1 dimensional array (a-o) and mark up the 2 dimensional array to show what goes in each cell (either 0 or a-o). A brute force implementation with 25 assignment statements should be evident.
Dec 24 '15 #2

Post your reply

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