2

How to get stored the value entered by user in multidimensional array

1

1 Answer 1

3

I assume this is C.

int arr[2][2] = {{1,2}, {3,4}};
int m01 = arr[0][1];
printf("%d\n", m01);

The above output will be 2.

It is important also to not confuse int ** with int [][]. They are very much different.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.