Question: tion 9 Which of the following code used to find the sum of the Right diagonal of two dimensional array. vet ered Select one:
tion 9 Which of the following code used to find the sum of the Right diagonal of two dimensional array. vet ered Select one: ced out of O a. if(i==j) sum+=a[i]]: O b. if(i+j=size-1) sum+=a[i]]); eg question O cif (i&:ltj) sum+=a[i][]: d. if(i&lamp:gt;j) sum+=a[i]]: on 8 Which of the following accesses the fourth element stored in aar? red Select one: d out of O a. arr [3]; O b. arr (3): question O c. arr [4); O d. arr (4); Fon 7 The index number of the last element of an array with 5 elements is ? et ered Select one: ed out of O a. 5 g question O b. 0 O .3 O d. 4 Which of the following is the correct syntax for initializing an array? ed Select one: out of O a. int a [3] ={0.1.2); O b. int a (3) = {0;1;2); question O c int a (3)= (0,2,3); O d. int a [3]={0,2,3);
Step by Step Solution
3.46 Rating (172 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
