& is the address of operator. Your code is attempting to get the address of a pointer. There are several options, assuming the pointer is not null, including...
if(a[0] == 0)
if(strlen(a) == 0)
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 6 of 6
Threaded View
|
Click Here to Expand Forum to Full Width |