double [ ] price = new double [ ] {3, 2.2, 4.7, 6.1, 4};
With the declaration above, price[5] generates a runtime error.
Correct Answer:
Verified
Q10: Arrays are reference variables.
Q11: In C# the length of an array
Q12: The Clear( ) method of the Array
Q13: Because arrays are reference types, the ref
Q14: A parallel array is used to create
Q16: The type used in the foreach expression
Q17: When you pass an array to a
Q18: Properties are added to a class to
Q19: When a method uses the params modifier,
Q20: You can declare an array without dimensioning
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents