Skip to content

Commit 645110d

Browse files
Mention value initialization
It will be very useful to discuss the concepts of value initialization and default initialization.
1 parent daa9037 commit 645110d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cpp/initializing-classes-and-structs-without-constructors-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int main()
4242
// Member initialization (in order of declaration):
4343
TempData td{ 45978, time(&time_to_set), 28.9, 37.0, 16.7 };
4444

45-
// Default initialization = {0,0,0,0,0}
45+
// Value initialization = {0,0,0,0,0}
4646
TempData td_default{};
4747

4848
// Uninitialized = if used, emits warning C4700 uninitialized local variable

0 commit comments

Comments
 (0)