468,484 Members | 2,113 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 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 918

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
reply views Thread by NPC403 | last post: by
2 posts views Thread by gieforce | last post: by
reply views Thread by theflame83 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.