C Programming - Pointers - Discussion

Discussion Forum : Pointers - True / False Questions (Q.No. 4)
4.
Are the three declarations char **apple, char *apple[], and char apple[][] same?
True
False
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
43 comments Page 3 of 5.

Dev Dixit said:   1 decade ago
**a
or
*a[]
or
**a[]
are the same statement.

Eg: we can write

a[1][1][1] as *(*(*(a+1)+1)+1).

Pratik Patel said:   1 decade ago
Hey can you tell me whats diff bet array of pointer and pointer of array?

Please reply.

VIkash Kumar Choubey said:   1 decade ago
Pooja is right but, in my point of view **apple & *apple[] are same.

Shanthi said:   9 years ago
Yes, these three are different from each other, no one is similar.

Rahul kumar ojha said:   10 years ago
I think all are not same in some aspect but they can work same.

Sanat said:   1 decade ago
The functionality are same.It simply uses different terms.

Ashutosh said:   1 decade ago
This is a true statement. You can check with compiler.

Shubham Singh said:   8 years ago
Are apple , *apple[] , **apple[][] equal ?

Laxmi said:   1 decade ago
2 is pointer array & 1,3 are same.

Abhi said:   7 years ago
1 and 2 are same but 3 are 2D array.


Post your comments here:

Your comments will be displayed after verification.