470,848 Members | 935 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

allocating zero bytes

char *s = new(std::nothrow) char[0];

std::cout << (void *)s << std::endl;

On my machine the value of s does not equal NULL. What does the standard say
about that?

Jan 20 '08 #1
0 949

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Gattaca | last post: by
8 posts views Thread by Avin Patel | last post: by
29 posts views Thread by K. Jennings | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.