The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
41 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 (253 points) | 41 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 Junior (873 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 (667 points)

Related questions

+3 votes
1 answer
6
asked Jan 6 in Programming by Lakshman Patel RJIT Boss (20.9k points) | 103 views
+1 vote
0 answers
7


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

44,487 questions
49,937 answers
165,623 comments
65,906 users