Hello every one,
I have a confusion regarding arrays and pointers, My question is: "Is array name a pointer (rather a constant pointer)"?? I feel the answer is 'yes' because we can use the de-referencing operator(*) with the array name, Also, because array name is a constant pointer so we cannot assign a different address to it.... but the link http://c-faq.com/aryptr/aryptr2.html clearly says that arrays are not pointers....
me_ansh
0
Light Poster
Recommended Answers
Jump to Post>My question is: "Is array name a pointer (rather a constant pointer)"??
No, but the reality is similar. An array name is converted to a pointer to the first element most of the time. The official standard terminology is that an array name is converted to a pointer to the …
All 3 Replies
Narue
5,707
Bad Cop
Team Colleague
me_ansh
commented:
Was an eye opener
+1
me_ansh
0
Light Poster
Narue
5,707
Bad Cop
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.