Jump to content

C++ Language/Variables/UniformInitialization

From Wikibooks, open books for an open world

There are three different syntax that you could use for initializing a variable: traditional "implicit initialization" (int iVar = 11;), traditional "explicit initialization" (int iVar(11);), and modern "uniform initialization" (int iVar {11};).

Additional information about uniform initialization (includes interactive examples)