Question: C# For each array, create and initialize your array with some values if these values have not been specified; you need to come up with
C#
For each array, create and initialize your array with some values if these values have not been specified; you need to come up with your own examples. Write C# statements to accomplish each of the following tasks:
1) Example: Assign the first element of array x of integers to 10. a) int[] x = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; b) x[0] = 10; 2) Declare an array g of integers, initializing each element of this five elements array to 8. 3) Declare array f of characters with a length of 10, initializing a, b, c, d, e, f, g, h, i, j. Then Display the value of the element of character array f with index 6. 4) Total the 20 elements of the floating-point array c. 5) Copy 11-element array a into the first portion of array b, which contains 34 elements. 6) Determine and display the smallest and largest values contained in 11 element floating-point array w.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
