4,358 views
0 0 votes
A is a 2D-array with the range [-5....5,3......13] of elements.The starting location is 100. each element accupies 2 memeory cells.
Calculate the location of A[0][8] using column major order and row major order.Does indexing matter??Why C follow $0$ indexing??

1 Answer

Position:
Show:

Related questions

0 0 votes
1 1 answer
1.5k
1.5k views
aditi19 asked Sep 13, 2018
1,495 views
what is wrong with this code? It shows segmentation fault#include<stdio.h>#include<stdlib.h>void main(){ int i,j,count=1; int a=(int )malloc(3*sizeof(int*)); fo...
2 2 votes
1 1 answer
2.9k
2.9k views
Beyonder asked Dec 20, 2017
2,909 views
Consider a lower triangular Matrix A[-25....+25, -25....+25], base address (BA)=0, size of element = 100 Byte. Find the location of a [-20][-21] (Ordering: Row Major)?
2 2 votes
1 answers 1 answer
2.8k
2.8k views
shikharV asked Nov 16, 2015
2,846 views
Please solve the above problem. Given answer: D
8 8 votes
3 3 answers
466
466 views
GO Classes asked Jun 25
466 views
What is the output of the following code?#include <stdio.h int main() { int a [3] = { {2, 4, 6}, {8, 10, 12} }; printf("%d %d %d", a , *(*(a + 1) + 1), *(*a + 2)); retur...