Wednesday, May 4, 2016

Sorting of Array


1. Program for arranging a given array in ascending order. The length of array is stored at memory location 5000H and the array starts from 5001H.


Screenshot of the array content before arranging. See the content of memory locations from 5000H.


Screenshot of the array content after arranging. See the content of memory locations from 5001H.


2. Program for arranging a given array in descending order. The length of array is stored at memory location 5000H and the array starts from 5001H.



Screenshot of the array content before arranging. See the content of memory locations from 5000H.


Screenshot of the array content after arranging. See the content of memory locations from 5001H.


No comments:

Post a Comment