Write a program to dynamically create a matrix( no of rows and columns wud be provided by user at run time). Then ask a user to input elements and the nprint those elements.

Questions by smart_coder   answers by smart_coder

Showing Answers 1 - 1 of 1 Answers

cw

  • Feb 11th, 2007
 

int **array;cin >> rows >> cols; // read num of rows & columnsarray = new int* [rows];for(int i=0; i < rows; i++) array[i] = new int [columns];

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions