Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Declaring an array of pointers

Posted on 1999-06-23
Medium Priority
Last Modified: 2010-04-02
   I want to know how to declare an array of pointers using new. like say if you have a structure called node.
node ** array;
i want to declare an array of 15 pointers with all assigned
Question by:kingakbar
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 22

Expert Comment

ID: 1198300
*************EXPERTS PLEASE NOTE*******************
This is a duplicate question probably asked by mistake.  Please do not answer here unless  Kingapkbar indicates he wants an answer here.  Please post answers and comments on


Kingakbar if this question was asked by mistake, delete it now and your points will be refunded.


Accepted Solution

snifong earned 20 total points
ID: 1198301
#include <memory.h>
void main()
int* ptrArray[10];
memset((void*)ptrArray, 0, sizeof(int*) * 10);
LVL 84

Expert Comment

ID: 1198302
snifong, didn't you see the comment saying not to answer this duplicate question?

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question