Ask your own question, for FREE!
Computer Science 26 Online
OpenStudy (anonymous):

11

OpenStudy (anonymous):

This page should answer all of your questions, indices are covered about a third of the way down http://www.cplusplus.com/doc/tutorial/arrays/

OpenStudy (anonymous):

int x[4] = {8, 7, 6, 5, 4}; no, the array size is limited to Four, and there are 5 numbers in the indexes int x[] = {8, 7, 6, 5, 4}; , yes, the array size is defined by how many set of numbers you would have with in the indexes int x[4] = {8, 7, 6}; yes, you can have at least 4 numbers or less in the brackets as long as the declared array is 4, in this case, it is correct. const int SIZE =4; int x[SIZE]; yes const int SIZE =4; int x[SIZE-4]; i would think it would be yes for this one, but you can not have any values in the array since the declared array is int [0]

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!