answersLogoWhite

0

What is the definition of a square array?

Updated: 4/28/2022
User Avatar

Wiki User

11y ago

Best Answer

A square array has the same number of columns and rows

the array [1] is a square array (a trivial example)

the array

[1 0]

[0 1]

is a square array

the array

[1 0 0 0]

[0 1 0 0]

[0 0 1 0]

[0 0 0 1]

is a square array

the array

[1 0 0 0]

[0 1 0 0]

[0 0 1 0]

is not a square array

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the definition of a square array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is squre array?

A square array is an array in which the number of rows is the same as the number of columns.


What is square array?

It is an array with the same number of rows and columns.


What number has a square array?

A perfect square.


How do you convert a string into a character array?

A string is, by definition, a character array. No conversion is required.


What is the improved array definition?

An array is used to store data having the same data type.


What does square brackets mean?

It means indexing into an array. The array could be an array of built in primitive types or array of objects. The index must be a numeric value greater than or equal to 0.


Why and is not using ' and ' in reading a string using scanf?

I guess you wanted to ask, why is it scanf ("%s", array)and not scanf ("%s", &array).Well, array is by definition a pointer to the first element: array = &array[0]


Is string is an object?

No. A string is, by definition, a character array.


Is string an object?

No. A string is, by definition, a character array.


Which numbers have a square array?

5


What numbers have a square array?

4th


Is one a square array?

Yes, if it is described as such.