Write single c statement that performs the indicated task


Assignment task: For each of the following parts, write single C statement that performs the indicated task. For each part, assume that all previous statements have been executed (e.g., when doing part e, assume the statements you wrote for parts a through d have been executed).

(a) Declare a pointer variable named student that can point to a variable of type double. (b) Declare grades to be a 5-element array of double.

(c) Make the student variable point to the last element of grades.

(d) Make the double pointed to by student equal to 17, using the * operator.

(e) Without using the student pointer, and without using square brackets, set the fourth element (i.e., the one at position 3) of the grades array to have the value 72.

(f) Move the student pointer back by three double.

(g) Using square brackets, but without using the name grades, set the third element (i.e., the one at position 2) of the grades array to have the value 93.

(h) Without using the * operator, but using square brackets, set the double pointed to by student to have the value 85.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write single c statement that performs the indicated task
Reference No:- TGS03251918

Expected delivery within 24 Hours