For an array of real numbers x [ − 6… 8 , -12… 20 ] , find the address of x [5] [4 ], if x [1] [1] is stored in location 100 in the column major order. Assume that each element requires 4 bytes.
Answers
Answered by
0
Answer:
Input: mat[][] =
{{ 2, 1, 7 },
{ 3, 7, 2 },
{ 5, 4, 9 }}
Output:
{ {0, 1, 0},
{3, 0, 2},
{0, 4, 0}}
Input: mat[][] =
{{1, 3, 5, 6, 7},
{3, 5, 3, 2, 1},
{1, 2, 3, 4, 5},
{7, 9, 2, 1, 6},
{9, 1, 5, 3, 2}}
Output:
{{0, 3, 5, 6, 0},
{3, 0, 3, 0, 1},
{1, 2, 0, 4, 5},
{7, 0, 2, 0, 6},
{0, 1, 5, 3, 0}}
Answered by
1
Answer:
Explanation:
I hope it helps:)
Plz go through the image
Attachments:
Similar questions