Question: (5) Array subscripts can be of data type double. (a) True (b) False (6) Write statements to accomplish the following. (a) Declare table to be

(5) Array subscripts can be of data type double.

(a) True (b) False

(6) Write statements to accomplish the following.

(a) Declare table to be a one - dimensional integer array and to have 4 elements

(b) Use a for loop repetition structure to initialize the elements in the array table such that each element is equal to its particular subscript number.

(7) Write statements to accomplish the following.

(a) Display the value of the sixth element of character array s .

(b) Input a value into element 3 of a single - subscripted floating - point array b .

(c) Initialize each of the 5 elements of the single - subscripted floating - point array m to 1 .

(8) Find the error(s), if any, in each of these program segments and then correct the error(s).

(a) #define SIZE 50;

(b) int b[ 5 ] = { 0 }, i ;

for ( i = 0 ; i <= 5 ; i++ )

b[ i ] = 1;

(9) Write statements that perform this single - subscripted floating - point array operation.

Add 1 to each of the 10 elements of the array expenses.

(10) Write statements that perform the following single - subscripted array operation.

Print the 5 values of integer array temperature in a column format.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!