Hi,
Is there a difference between those 2 statements:
str1 = new char[50];
and
str2 = new char(50);
both str1 and str2 were defined like this:
char* str1=null;
char* str2= null;
Thanks
Avi
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: Difference between new () and []Threaded View
|
Click Here to Expand Forum to Full Width |