Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C
Pointers and arrays in c++object orientated programming
Pointers and arrays in c++object orientated programming
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
sechaba
New Member
Join Date:
Mar 2010
Posts:
1
#1
Pointers and arrays in c++object orientated programming
Mar 31 '10, 09:50 AM
What is the relationship between pointers and arrays;how are this two ultimately related and used together?
thanks a lot
Dheeraj Joshi
Recognized Expert
Top Contributor
Join Date:
Jul 2009
Posts:
1129
#2
Mar 31 '10, 10:31 AM
Array is similar to pointer.
you define array as
Code:
int a[20];
now
Code:
*a
points to a[0];
incrementing a by size of integer(since a is of type integer) you can traverse all the elements of an array.
Go through this link
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment