[omniORB] [C++] memory allocation

Hung Ta Viet viethungth99 at yahoo.com
Tue Jan 25 00:58:32 GMT 2011


Hi omniORB friends,

You're the experts of omniORB, I think you're expert in C++, also.

I have a question, who knows is very welcome:

Assume we have a fragment of code:

typedef char String [46];
String* pStr = new String[10];

A question are: 
1. How is memory allocated for the pointer pStr?
2. If we use delete pStr; , is the memory allocated for the pointer deleted 
completely?

Regards,
Hung



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20110125/5be0e1d2/attachment.htm


More information about the omniORB-list mailing list