Initialization (programming): Difference between revisions

Content deleted Content added
Line 18:
and not to turn this page into a C++ primer
-->
<source lang="c">
:int i = 0;
:int i2(i = 0);
:int i2(0);
int k[4] = {0, 1};
:int j[2] = {rand(), k[0]};
:char tx[3]="fa";
:char ty[2]="fa";
: MyClass* xox = new MyClass (0, "zaza");
:struct point {int x; int y;} p = {rand(), i};
:point q = {0, i+1};
</source>
 
===Initializer list===