Skip to Main Content
Xpress Learning - Computer Fundamentals of Programming an IT by Pearson
book

Xpress Learning - Computer Fundamentals of Programming an IT by Pearson

by Ashok N. Kamthane, Rohit Khurana
May 2024
Beginner to intermediate content levelBeginner to intermediate
465 pages
16h 14m
English
Pearson India
Content preview from Xpress Learning - Computer Fundamentals of Programming an IT by Pearson
Array
1.  What is an array?
Ans:
1. An array is a linear data structure.
2. It is a finite collection of data elements.
3. An array permits homogeneous data. It means its each data element is of same type.
4. Similar data type elements are stored contiguously in the memory and that too under one variable name.
2.  How elements of an array are stored?
Ans:  Elements of array are stored in contiguous memory locations. One-dimensional or more
than one-dimensional elements are stored contiguously. Figure 7.1 shows storage of elements of a
one-dimensional array Num[5] contiguously.
Num[0]
1
65516
Num[1]
2
65518
Num[2]
3
65520
Num[3]
2
65522
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Express Learning - Computer Fundamentals and Programming

Express Learning - Computer Fundamentals and Programming

Ashok Kamthane, ITL ESL
Windows® Internals, Sixth Edition, Part 2

Windows® Internals, Sixth Edition, Part 2

David A. Solomon Mark E. Russinovich and Alex Ionescu

Publisher Resources

ISBN: 9781299954878