Q1.(a) Assume that each element of an array occupies four units of storage. If A is declared by each of the following and address of first element of A is 100. Find the address of indicated array element if array elements are stored in row- major order and column major order: (i) int A [10][20] ; address of A[2][10] (ii) int A[10]20]; address of A[9][19]

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 1PP: (Statistics) a. Write a C++ program that reads a list of double-precision grades from the keyboard...
icon
Related questions
Question
Q1.(a) Assume that each element of an array occupies four units of storage. If A is declared by each of
the following and address of first element of A is 100. Find the address of indicated array element
if array elements are stored in row- major order and column major order:
(i)
int A [10][20] ; address of A[2][10] (ii) int A[10]20]; address of A[9][19]
Transcribed Image Text:Q1.(a) Assume that each element of an array occupies four units of storage. If A is declared by each of the following and address of first element of A is 100. Find the address of indicated array element if array elements are stored in row- major order and column major order: (i) int A [10][20] ; address of A[2][10] (ii) int A[10]20]; address of A[9][19]
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr