Posts

Showing posts with the label Two Dimensional Array

Array Data Structure in C, Types of Array 1D, 2D and nD (Multidimensional Array) and Need of Array (C में Array Data Structure, Array के प्रकार (1D, 2D और nD) तथा Array की आवश्यकता)

An Array is a collection of elements of the same data type stored in contiguous memory locations. All elements are accessed using a common array name and an index (subscript). The index of an array starts from 0 and ends at size - 1 . The address of the first element of an array is called the Base Address of the array. In C language, an array is an important data structure used to store and process multiple values using a single name. Array एक ही Data Type के अनेक Elements का समूह होता है। इसके सभी Elements कंप्यूटर की Memory में क्रमागत (Contiguous) स्थानों पर संग्रहीत होते हैं। Array के सभी Elements को एक ही नाम से पहचाना जाता है तथा प्रत्येक Element का अपना Index होता है। Array का Index हमेशा 0 से शुरू होता है और अंतिम Index size - 1 होता है। Array के पहले Element का Address उसका Base Address कहलाता है। C भाषा में Array का उपयोग एक ही नाम के अंतर्गत अनेक Values को संग्रहीत करने और उन पर आसानी से कार्य करने के लिए किया जाता है। Example of an Array Consider an integer array cont...