G
Guest
How to initialize a pointer in c++,
Mostly, I use null, for example,
char * szName = null;
However, if i compile it without including afxdisp.h
, .net compiler tell me that the identifier is not declared.
but if i base on lunix operate system, is it correct also.
I think i shoud use 0, for example,
char * szName =0;
is it more general?
thank in advanced
Mostly, I use null, for example,
char * szName = null;
However, if i compile it without including afxdisp.h
, .net compiler tell me that the identifier is not declared.
but if i base on lunix operate system, is it correct also.
I think i shoud use 0, for example,
char * szName =0;
is it more general?
thank in advanced