Program for dynamic 2d memory, C/C++ Programming


1.  This assignment as well as other assignments in this class must be finished on Windows operating system.

2.  Zip your program and submit the zip file on ANGEL


  In this lab, please complete a given program to perform the following tasks:

1.  Allocate a 10 by 5 2D byte array dynamically. Each element is a byte.

2.  For each element in the array, assign a random number. The range does not matter.

3.  Display the array.

4.  Exchange the rows as defined below:

Row 0 becomes Row 9

Row 1 becomes Row 0

Row 2 becomes Row 1

Row 3 becomes Row 2

Row 4 becomes Row 3

Row 5 becomes Row 4

Row 6 becomes Row 5

Row 7 becomes Row 6

Row 8 becomes Row 7

Row 9 becomes Row 8

Please swap the values, instead of just the pointers.

5.  Display the array.

You are required to finish the given program, "TwoDArray_lab6.asm", without adding new variables.

The output may look like:1409_dynamic 2D memory.png

2041_dynamic 2D memory.png

Posted Date: 3/5/2013 6:54:33 AM | Location : United States

Related Discussions:- Program for dynamic 2d memory, Assignment Help, Ask Question on Program for dynamic 2d memory, Get Answer, Expert's Help, Program for dynamic 2d memory Discussions

Write discussion on Program for dynamic 2d memory
Your posts are moderated
Related Questions
I need Asp .net Facebook app project completion Project Description: We are urgently seeking a few remaining items to be completed, and the project to be deployed to live.

redirection in c++

Important Note: No course works, which have been submitted via hard copies or emails, will be accepted a short essay below edited in a document (word, other) files with

write an algorithm to swap values without using third variable

Project Description: I will need a tutor that would help me out in Data Structure and learning Algorithm more at the mathematical/algorithmic level. The book is written by "by T

#write code for rotation in c

In this problem you are given a board in which some of the elements are placed as shown in diagram below. Each element represents a color. Fill the other elements in the board, suc

What is the difference between early binding and late binding? What are advantages of early binding? a.) Late binding refers to function calls which aren't resolved until run t

C Program for SELECT THE CHAR WHICH U WANT #include stdio.h> #include conio.h> void main() {             void substr(char[], int *, int *);           int a,b

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send