I just was wondering why the array its self are a pointer to the first element?
and what is the difference between an array and a pointer?
laconstantine
0
Junior Poster in Training
Recommended Answers
Jump to PostI just was wondering why the array its self are a pointer to the first element?
and what is the difference between an array and a pointer?nice question!
first, i want you to read a definition of arrays,
An array is an example of a homogeneous random …
Jump to Postthen when we using it in sizeof function
1.sizeof(arr);
its will print us the size of the whole block.right!
2.sizeof(arr+1);
its will get to the other element address and will print the size of whole the elements that is after the second.
thats right?no, that is not right. …
Jump to Post>why they both have the same address??
Why do you keep asking the same question? Is it that difficult to understand that you can treat an address as multiple data types? If you don't get it yet, me explaining it umpteen more times probably won't help. So let's just say …
Jump to PostThat works.
Jump to PostYes.
All 27 Replies
Narue
5,707
Bad Cop
Team Colleague
Salem
5,138
Posting Sage
laconstantine
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
iTaChi
19
Newbie Poster
~s.o.s~
commented:
Good one.
+19
laconstantine
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
laconstantine
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
laconstantine
0
Junior Poster in Training
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
vijayan121
1,152
Posting Virtuoso
laconstantine
0
Junior Poster in Training
vijayan121
1,152
Posting Virtuoso
vijayan121
1,152
Posting Virtuoso
Narue
5,707
Bad Cop
Team Colleague
vijayan121
1,152
Posting Virtuoso
laconstantine
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
laconstantine
0
Junior Poster in Training
iTaChi
19
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
laconstantine
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
laconstantine
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
newprog
0
Newbie Poster
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.