
Differences Between Initialization Forms
Suppose you have an aggregate, i.e., a struct or a union that contain another struct as a member: struct A{ int x; int y;};union B{ A var1; float var2;}; Can you tell the difference between the following initialization forms? B arr[3] = {1,1,1}; B arr[3] = {{1},{1},{1}}; The first statement