First page Back Continue Last page Graphics
Array Initialization
Set all elements by using the completion rule. int toys[8]={0}; sets first element to 0, and since initialization set is smaller than the array, the rest are set to 0 also.
Practice: arrayone.cpp in Prata
Practice: array_init.cpp and index_address.cpp in inclass.