answersLogoWhite

0

What is the three dimentional array in c?

Updated: 8/17/2019
User Avatar

Wiki User

15y ago

Best Answer

An array whose element are arrays whose elements are arrays. Eg:

int cube[2][2][2], i, j, k;

for (i=0; i<2; ++i)

for (j=0; j<2; ++j)

for (k=0; k<2; ++j)

cube[i][j][k] = 4*i + 2*j + k;

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the three dimentional array in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is example of two dimentional array?

a matrix


What are the kinds of arrays?

1. One dimension array 2. Two dimension array 3. Multi dimentional array


Declaration of two dimentional array in functions?

Possible. void foo (void) { int array [10][20]; ... }


How do you initialise a two dimentional array?

C provides rectangular multidimensional arrays. In C, a two-dimensional array is really a one-dimensional array, each of whose elements is an array. An array is initialized by a list of initializations in braces; each row of a two-dimensional array is initialized by a corresponding sub-list. Example of two dimensional array initialization: char array_example[2][4] = { {11, 12, 13, 14}, {21, 22, 23, 24} };


Is a rectangular prism a polygon?

no. the definition of polygon is two dimentional and a prism is three dimentional


What two-dimentional shapes are most often associated with three-dimentional forms?

Lines of symmetry


What is one dimentional array?

A One dimensional array is one in which a set of values are present in it. Ex: int[] myArray = new int[4]; The above statement creates a one dimensional array that can hold 4 values.


What does a 2 dimensional array do?

A two dimensional array is a one-dimensional array of one-dimensional arrays. That is, just as we can have an array of integers, we can also have an array of integer arrays. This idea can be extended such that we can have an array of two-dimensional arrays (a three-dimensional array), and so on. We typically use a two-dimensional array to represent a table of rows and columns, where each row is a one-dimensional array.


A what is a two-dimentional pattern that can be folded into a folded three-dimentional polyhedron?

i don't know the answer i just want to find it


What is single dimentional?

A single dimension array is an array with one dimension. It is a collection in memory of one or more elements of the same type. int array[100]; declares an array of int's of size 100 elements. The elements are referenced as array[0], the first one, through array[99], the last one.


Sample program of single-dimentional array?

#include "stdio.h" #define SIZE 100; void main() { int array[SIZE], i, size; printf("\nEnter the Size off Array :- "); scanf("%d", &amp;size); printf("\nEnter the Elements of Array :- ")' for(i = 0; i &lt; size; i++) scanf("%d", &amp;array[i]; printf("\nThe Elements of entered Array :- "); for(i = 0; i &lt; size; i++) printf("%7d", array[i]); }


Round three-dimentional object the shape of the earth?

a planet