answersLogoWhite

0

A one dimensional array is an array of objects that goes in one "direction". Any array with only one [] is a one dimensional array. For example: int numbers[6]; is a one dimensional array. int numbers[6][3]; is a two dimensional array.

Graphical terms:

One dimensional array[4]:

14 - 75 - 8164 - 234

Two dimensional array[2][3]:

47 - 178

108 - 85

17 - 128

It didn't come out quite how I wanted it...

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What is the lowest subscript of an array in c plus plus?

The lowest subscript of an array in C, or C++ is 0.


Columns and rows in c programming?

Do you perhaps mean -- a two-dimensional array? A two dimensional array is nothing more than a one-dimensional array where every element is a one-dimensional array. int matrix[4][5]; C is a row-major language thus the first dimension refers to the number of rows. Here we have declared an array of 4 rows, where each row is an array of 5 elements of type int.


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} };


How many types of arrays in c?

An array is simply a contiguous block of memory containing two or more elements. There are two types of array: a static array which is allocated on the stack at compile time; and a dynamic array which is allocated on the heap at runtime. Both can be one-dimensional or multi-dimensional. A one-dimensional array can be likened to a row (or column) of chessboard squares, with as many squares as required to store all the elements. A multi-dimensional array is any array with two or more dimensions. A two-dimensional array can be likened to the whole chessboard, where any square can be identified by its row and column index. However the dimensions needn't be equal. A two-dimensional array can also be imagined as a one-dimensional array where every element is simply another one-dimensional array. Three-dimensional arrays can be likened to a cube, or as a one-dimensional array of two-dimensional arrays. A four-dimensional array can be linked to a one-dimensional array of three-dimensional arrays, and so on. Although every one-dimensional array must be allocated in contiguous memory, multi-dimensional arrays can be dynamically allocated so that each dimension is itself a separately allocated one-dimensional array of pointers to the next dimension, making it possible to allocate extremely large arrays over a series of smaller allocations rather than as a single contiguous block.


Explain Single dimensional array concepts C programming?

The idea of an array is to store data for different related items, using a single variable name. The different items are distinguished by a subscript (a number, which may also be a variable or some other expression)


How do you write a program in c plus plus to check if an array is symmetric?

To determine if an array is symmetric, the array must be square. If so, check each element against its transpose. If all elements are equal, the array is symmetric.For a two-dimensional array (a matrix) of order n, the following code will determine if it is symmetric or not:templatebool symmetric(const std::array& matrix){for (size_t r=0 ; r


How do you declare a string array and add elements to it in C plus plus?

You cannot add elements to a fixed array in C or C++. If, however, the array is declared as a pointer to an array, you can add elements by allocating a new array, copying/adding elements as needed, reassigning the new array to the pointer, and deallocating the original array.


A c plus plus code to make a multidimensional array that can store strings?

int myarray=[5][5]; This snippet of code creates a 5X5 two-dimensional array. You can declare an array with more dimensions, but you shouldn't really need to go above more than four dimensions. Four-dimensional arrays are only used by high-end graphics programs or programs that need to calculate a ton of data.


Making multiplication table in c plus plus using do while loop?

Um, not sure how to do that, but you can create a sort of "table" in C++ by using multidimensional arrays. Below is an example of how to create a two-dimensional array: int myArray[10] [10]; You can add more dimensions to the array in order to increase its storage capacity.


How many types of sorting array in C programming?

You can sort an array with any method you want, but there is a built-in qsort function, declared in stdlib.h (see the attached link).bubble sort, quick sort, insertion sort, merge sort, radix sort and lot more..merge sort is the most efficient one..


How you create table in c language?

The simplest way to create a table in C is to use a two-dimensional array.


How do you write a program in C to find and display the sum of each row and column of a 2 dimensional array of type float?

array type

Trending Questions
Why was Jonas skeptical that anyone might be unhappy with his life in the community? Complex proteins that speed up chemicals reaction by lowering the amount of energy needed to get the reaction started? Does a 1996 Ford Ranger XL have front abs brakes? Where is an ospreys special features? What is the 5th sentence on page 56 of the outsiders book? What are some creative ways to decorate a window sill flower box? How do you get cookies on the computer? What are the products of 315? I had traffic tickets from 7 yrs ago that were sent to collections C O of the court I filed for Chapter 7 Bankruptcy those debts were discharged under the bankruptcy do I still owe the debts? When was Nostra Aetate created? What role did the early church and monasteries play in the spread of Christianity after the fall of Rome? What is the unheathiest food in America? Why does your baby bearded dragon chirp and make noise? What is The contest for world leadership that began after world War 2 between the communist nations and the of the west? What does Amy Rose wear in the main series? What did The Battle of Vicksburg give the North control of? What is a way that weather patterns affects the culture? Who is responsible of an organization responsible for tactical planning that implements the general guidelines established by top management? If AVB has a measure of 70 and is its angle bisector what is the measure of AVM? Describe in outlines the purification of water supply in terms of filtration and chlorination?