0% found this document useful (0 votes)
12 views8 pages

Array (Part 2)

array lecture Programming

Uploaded by

Ahmad Ishtiaq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views8 pages

Array (Part 2)

array lecture Programming

Uploaded by

Ahmad Ishtiaq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Arrays

Initializing Two-Dimensional Array

 It is important to remember that while initializing a 2-D array it is


necessary to mention the second (column) dimension, whereas the first
dimension (row) is optional.
Initializing Two-Dimensional Array
I/O in 2D Arrays
2D Arrays in Memory

• Memory doesn’t contain rows and columns.


• In memory whether it is a one-dimensional or a two-dimensional array the
array elements are stored in one continuous chain.
• The arrangement of array elements of a two-dimensional array in memory is
shown below:
Task # 1

Write a program that initializes a two-dimensional array of 2 rows and 4 columns and
then display the minimum and maximum number in the array.
Output
Output

You might also like