|
|
|
|
|
by aw1621107
73 days ago
|
|
> It says the value is unspecified but it exists. The precise value is not specified, but whatever value is picked also has to be something that isn't tied to the state of the program so some kind of initialization needs to take place. Furthermore, the proposal explicitly states that (some) variables are initialized by default: > Default-initialization of an automatic-storage object initializes the object with a fixed value defined by the implementation > The automatic storage for an automatic variable is always fully initialized, which has potential performance implications. > The automatic storage for an automatic variable is always fully initialized, which has potential performance implications. |
|