answersLogoWhite

0


Best Answer

An array of order 4x8 can either be implemented as a one-dimensional array of order 32 or as a one-dimensional array of order 4, where each element is a one-dimensional array of order 8. In either case, the 32 data elements are allocated contiguously and there is no difference in performance.

A third way is to implement the one-dimensional array of order 4 as an array of pointers to separately allocated one-dimensional arrays of order 8. The order 4 array is contiguous as are the order 8 arrays, however they need not be contiguous with one another other. This is the least efficient implementation due to the additional level of indirection required to navigate the array.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are 3 different ways to implement an array of order 4x8?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Two linked list in a array is possible?

Like this: #define MAXLIST 100 int first, next [MAXLIST]; /* let the list be: #0 ---> #2 ---> #1 */ first= 0; next[0]= 2; next[2]= 1; next[1]= -1; /* means end of list */ Note: you should track which elements are unused, in the beginning every elements are unused: int first_unused= 0; for (i= 0; i<MAXLIST; ++i) next[i]= i+1; next[MAXLIST-1]= -1; /* means end of list */


Write a routine to implement the t e x t function?

There are many ways you could write a routine to implement text functions. You could, for example, come up with codes.


How can you make a array with the number 16?

If you mean how do you create an array with 16 elements, there are two ways: int a[16]; /* fixed size array of 16 integer elements */ int* b = malloc(16*sizeof(int)); /* variable length array with (initially) 16 integer elements */ Remember that variable length arrays allocated on the heap must be released as soon as they are no longer required: free (b); b=NULL;


What is one of the ways in which people can implement sustainable development?

building power plants using sources of renewable energy such as wind or solar power


What is polynomial in c language?

A polynomial is a mathematical equation in the form ... f(x) = Ax0 + Bx1 + Cx2 + Dx3 ... etc. Often, the ordering of the terms is the other way around, but I used this order to segue into the discussion of computer representation. What you need, are the coefficients, A, B, C, D, etc. in an array. Most often, one would create an array of double, and place the coefficients into the array. double x[4] = {A, B, C, D}; This way, x[0] = A, x[1] = B, etc. and you could write code to manipulate the polynomial in various ways.

Related questions

Why are all rocks different sizes?

All rocks are not the same in that they are formed in a variety of ways, and are comprised of an array of mineral assemblages.


Which are ways to connect a CPU to a socket?

Land grid array and Pin grid array


How many different ways can you arrange 10 trophies on a table in a rectangular array?

10+9+8+7+6+5+4+3+2+1=45 ways


How many different ways can you arrange 20 photos in an array?

Assuming that the arrays need to be rectangular, the answer is 14,597,412,049,059,800,000 or approx 15 quintillion.


How can one implement the balanced scorecard translating strategy into action?

There are a number of ways one can implement the balanced scorecard translating strategy into action. Perhaps the best way to learn the different ways would be to look for books on the subject, such as The Balanced Scorecard: Translating Strategy into Action by Robert Kaplan.


How do you implement quality assurance?

There are a number of ways through which you can implement quality assurance. This by ensuring that you have quality raw materials and proper supervision in production among other ways.


What are some different ways that you can order prints from Black's in Canada?

Some different ways that you can order prints from 'Black's in Canada' are ordering by phone, emailing, faxing, or going to the store in person and making an order.


How many ways can you put 4 different letters in order?

There are 24 ways (4 times 3 times 2 times 1) to put 4 different letters in order.


What are all the factors of 32 that are an array?

The factors of 32 are 1, 2, 4, 8, 16 and 32. As pairs, they are (32,1)(16,2)(8,4) and as such, they can be arrayed different ways.


How many different ways can you order 5 songs on a CD?

120


How many different ways can you make rectangular arrays for the number 64 and what are they?

3 or 7 - depending on whether you count a transposed array as different. 1*64 2*32 4*16 8*8


Speech on importance of adult education and ways to implement it?

i don't know how..!!:P