13v3-2025-12-31_03_10_55-psuc-unit-3-and-4.pdf
13v3-2025-12-31_03_10_55-psuc-unit-3-and-4.pdf
One. What is an array? Explain declaration and initialization of one-dimensional array
An array in C is a collection of elements of the same data type stored in contiguous memory locations. Each element of an array is accessed using a common name and an index
(subscript). Arrays are useful when we need to store and process a large number of similar data items efficiently.
One-Dimensional Array
One-Dimensional Array
A one-dimensional array is a linear list of elements. The elements are stored one after another and are accessed using a single index.