Possible Duplicate:
What do the following phrases mean in C++: zero-, default- and value-initialization?
I was reading this answer, so I came across the second word : value-initialize
. Initially I thought this is same as default-initialize
but the context hints me that I'm wrong.
So my question is :
What is the difference between default-initialize and value-initialize?
I would like to understand the difference with some examples.