Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Multi-dimensional Pointers in C++

Reply
Thread Tools

Multi-dimensional Pointers in C++

 
 
Varun Sud
Guest
Posts: n/a
 
      08-31-2005
Hi,
I have written an article declaring and using multi-dimensional
pointers in C++. The article tries to address many of the issues
related to multi-dimensional pointers asked in the forum.

Article link:
http://www.geocities.com/varunhostel...cle_Intro.html

Some of the questions answered in the article are:

Chapter 9: How do I dynamically allocate memory for a 3-dimensional
pointer equivalent to an array a[2][3][4]?
Chapter 6: To what extent can I inter-change pointer and array syntax
in C++?
Chapter 11: How do I decipher very long function pointer declarations?
Is there a standard approach for it?
Chapter 11: What is the difference between the two declarations: int
*ptr[5] and int (*ptr) [5]?


I wanted the above topics in the article to be validated by a more
experienced person. I expect that there could be a few subtle
complications that I have missed out on. Please respond
enthusuastically and e-mail your responses or just post in the forum.

Thanks,
Varun Sud
http://www.geocities.com/varunhostel/

 
Reply With Quote
 
 
 
 
Mike Wahler
Guest
Posts: n/a
 
      08-31-2005

"Varun Sud" <> wrote in message
news: ups.com...
> Hi,
> I have written an article declaring and using multi-dimensional
> pointers in C++. The article tries to address many of the issues
> related to multi-dimensional pointers asked in the forum.


Well then I need not read it, since there's no such
thing as a multi-dimensional pointer in C++. Pointers
don't have 'dimensions'. They have a type and can
represent an address value (or 'no-address' via a
'NULL' value.)

>
> Article link:
> http://www.geocities.com/varunhostel...cle_Intro.html
>
> Some of the questions answered in the article are:
>
> Chapter 9: How do I dynamically allocate memory for a 3-dimensional
> pointer equivalent to an array a[2][3][4]?
> Chapter 6: To what extent can I inter-change pointer and array syntax
> in C++?
> Chapter 11: How do I decipher very long function pointer declarations?
> Is there a standard approach for it?
> Chapter 11: What is the difference between the two declarations: int
> *ptr[5] and int (*ptr) [5]?
>
>
> I wanted the above topics in the article to be validated by a more
> experienced person. I expect that there could be a few subtle
> complications that I have missed out on. Please respond
> enthusuastically and e-mail your responses or just post in the forum.


How about you read the C++ FAQ first?

http://www.parashift.com/c++-faq-lite/

-Mike


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pointers, pointers, pointers... cerr C Programming 12 04-07-2011 11:17 PM
Does deleting a container of pointers also delete the (contained) pointers? Xamalek C++ 7 11-04-2003 04:17 PM
c++: pointers to pointers A C++ 3 10-29-2003 01:15 PM
pointers to pointers // exception handling error muser C++ 3 09-18-2003 06:19 PM
Template specialization of pointers with function pointers Phil C++ 1 09-16-2003 02:17 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57