EC312 Chapter 4: Arrays and Strings

Since we are initializing the array with six elements, the compiler knows to make the size of the array six. C++ also has a special initializer to set all elements of an array to zero: int a[6] = {0}; // sets all array elements to 0 This sets a[0] to 0, a[1] to 0, etc. up to a[5]. However note that this ONLY works for the ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download