284 views
1 votes
1 votes
Let's consider 2 cases

Case1 : int A[2][3];

Case 2 : int (*A)[2][3];

Is there any difference between A in Case1 and Case2?if any please explain?

2 Answers

0 votes
0 votes
In case 1: A is an 2D array of size 2×3 of integer types.

Whereas in case 2: A is an pointer array of size 2×3 to integer value .i.e. A array holds the address of integer.

Related questions

2 votes
2 votes
1 answer
1
1 votes
1 votes
1 answer
2
Sparsh-NJ asked Jul 15, 2023
372 views
Can an array store elements of different storage classes?