Program of 2d byte array dynamicall, C/C++ Programming

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

1. Allocate a 10 by 5 2D byte array dynamically. The way of allocation must be consistent with page 39 in chap9.ppt. 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:

2344_output of array.png

Posted Date: 3/25/2013 6:23:30 AM | Location : United States







Related Discussions:- Program of 2d byte array dynamicall, Assignment Help, Ask Question on Program of 2d byte array dynamicall, Get Answer, Expert's Help, Program of 2d byte array dynamicall Discussions

Write discussion on Program of 2d byte array dynamicall
Your posts are moderated
Related Questions
write an algorithm for linear search algorithm

A: This is a name that acts as an alias, or alternative name, for a beforehand defined variable or an object. prepending variable along with "&" symbol makes it as reference. fo

Explain Rules for constructing variable names? The Rules for constructing variable names : a) A variable name is any combination of alphabets, 0 to 9 digits and undersc

Object Initialization An object of a derived class can be initialized to an object of a base class. If both the classes have similar data members, then no specific constructor


Define Automatic storage classes - computer programming? The Variables declared within function bodies are automatic by default and automatic variables are declared inside a fu

want the codings for these topic in ur experts minds.com

C Program to check FACTORIAL   main() {             int i,j,m,fact,sum=0;           clrscr();           printf("ENTER THE NO.: ");           scanf("%d",&m);

What is Structure? An Array is a data structure whose elements are all of the similar data type. The structure is a data structure whose individual elements are able to differ