Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 31st, 2005, 11:55 AM
Varun Sud
Guest
 
Posts: n/a
Default Multi-dimensional Pointers in C++

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/

  #2  
Old August 31st, 2005, 08:05 PM
Mike Wahler
Guest
 
Posts: n/a
Default Re: Multi-dimensional Pointers in C++


"Varun Sud" <varunhome@gmail.com> wrote in message
news:1125484970.636978.30550@o13g2000cwo.googlegro ups.com...[color=blue]
> 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.[/color]

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.)
[color=blue]
>
> 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.[/color]

How about you read the C++ FAQ first?

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

-Mike


 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles