Re: char* pname = "Harry"




John Bode wrote:
erktek@xxxxxxxxx wrote:
Statement given below;

char * p ;

p = (char*) malloc(20);

Lose the cast, unless you're working with a *very* old implementation
(pre-C89).
[snip]
Or the code should be usable with both C and C++.

/Peter

.