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

1. You do not specify an upper bound when you declare an array. You must redimension the array to set the upper bound before the array can hold any values. True or False

OpenStudy (anonymous):

True or false? Is this a trick question or something? In every language I'm familiar with, this statement would be patently false.

OpenStudy (anonymous):

ReDim is an old BASIC command that is still used in Visual Basics. However, you do not have to specify the index upper bound if you supply element values in the New clause. Example from Microsoft : Dim answers As Boolean() = New Boolean() {True, True, False, True} Another Microsoft example using ReDim Dim intArray(10, 10, 10) As Integer ReDim Preserve intArray(10, 10, 20) ReDim Preserve intArray(10, 10, 15) ReDim intArray(10, 10, 10)\ ReDim releases the array and redimensions it. Preserve reinitializes the array with the existing values. You can create an array with no dimensions, but one that is not NULL. You can get some help here : http://msdn.microsoft.com/en-us/library/w8k3cys2(v=vs.80).aspx FYI and for future reference: You can get better answers if you ask a question, and give a complete description of hat you are looking for

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!