Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2. Note: This program is about concepts, no GUI’s are required here. Spend your time making sure you understand the concepts of memory and addressing, not GUI making.
- 3. Write a program that declares a 2 dimensional array of integers of size 10 by 10.
- 4. Load the array in a row major fashion so that at array position 0, 0 the number 0 resides, at the array position 9, 9, the number 99 resides.
- a. For the load you can access the array using conventional array syntax
- i. Example: IntArray[row][col] = x;
- 5. Make a function that allows the user to print out a row of the array.
- a. Use pointer arithmetic to print the data.
- b. The program will print the contents of the selected row, starting at column 0 and finishing at column 9.
- 6. Now make a function that allows the user to select a column of the array to print out.
- a. Use pointer arithmetic to print the data.
- b. The program will print the contents of the selected column, starting at row 0 and finishing at row 9.
Add Comment
Please, Sign In to add comment