The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
38 views
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?
asked in Programming by (201 points) | 38 views
0

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

2 Answers

0 votes
Case1 --> A is 2d Array

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

 

Thanks
answered by (427 points)
0
Thankuu
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.
answered by Junior (729 points)


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

39,815 questions
46,794 answers
140,934 comments
58,863 users