In a book I found following (translation):
Initialization means assigning the value of the variable at the declaration time. int X=5
is called an initialization command.
EDIT: It just says that term initialization is used only when you assign value at the declaration time. If you do it later, its just assignement (according to it - I do not think so and that is why I am asking). Is it true or not?
Well, I have always thought (and according to others on the net, too) about initialization in the terms of first assignment of a value to a variable. I think that int X=5
is just assignment as a part of declaration.
I tried to search on MSDN with no luck. Thanks for any information.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…