To initialize an array
explicitly when you define it, you must use an initialization list: this is a comma-separated list of initializes, or initial values for the individual array
elements, enclosed in braces.
example:
int X[4] = { 1, 2, 4, 8 };
0 Comment "Explain the rules for initializing an array variable."
Post a Comment