|
-
April 29th, 2004, 02:48 PM
#1
pointer question in C
hi
i have a question on pointer. suppose p is a dynamically allocated memory pointer. now if i do a p++ does it mean i will get p[0], p[1],p[2] etc ?
or in other words, does it mean
p[0]= p
p[1] = = p+sizeof(data_type) // this is basically p++
can you tell what is the relation between p++ and pointer indexes ?
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|