in Programming in C
289 views
1 vote
1 vote
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?
in Programming in C
289 views

1 comment

read this for get better understanding https://www.geeksforgeeks.org/complicated-declarations-in-c/

0
0

2 Answers

0 votes
0 votes
Case1 --> A is 2d Array

Case2 --> A is a pointer to 2D array of dimension 2 and 3

 

Thanks

1 comment

Thankuu
0
0
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