Explain two-dimensional array.



Explain two-dimensional array...

Answer / Sadaf Naz

A two-dimensional array is an array of arrays, where each inner array holds a subset of elements. In C, it can be declared as 'int arr[rows][columns]'. Two-dimensional arrays are useful for storing data that can be organized in tables or matrices. Accessing the elements involves two indices: one for the row and another for the column.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Convert a distance from miles to kilometers .there are 5280 feets per mile,12 inches per foot .2.54 centimeters per inch and 100000centimeters per kilometer

0 Answers   TCS,


suppose there are five integers write a program to find larger among them without using if- else

2 Answers  


how to calculate the time complexity of a given algorithm? pls give exaples..mainly for the coplexities such as O(log n),O(n log n)...

1 Answers   Infosys,


What is pointer to pointer in c language?

1 Answers  


How do you write a program which produces its own source code as output?

1 Answers  


How does #define work?

1 Answers  


how to write a bubble sort program without using temporary variable?

1 Answers   Aricent,


What is sizeof int in c?

1 Answers  


Under what circumstances does a name clash occur?

1 Answers   InterGraph,


how many errors in c explain deply

1 Answers  


What is %s and %d in c?

1 Answers  


Define a structure to store the record of library. The record must consist of at least following fields: Title, Author, Edition, Price, Publisher, and Category. -Define functions authorSearch ( ), TitleSearch ( ) and CategorySearch ( ) to search a book with respect to author, title and category. [There can be more than one book, written by one author, in one category]

2 Answers  


Categories