Write two separate statements that assign the starting


1)For each of the following, write C++ statements that perform the specified task.. (Ref: classwork named pointer2)

a)Declare a built-in array of type unsigned int calledvalues with five elements, and initialize the elements to the even integers from 2 to 10.

b)Declare a pointervPtr that points to a variable of type unsigned int.

c)Write two separate statements that assign the starting address of arrayvalues to pointer variablevPtr.

d)Use a for statement to print the elements of arrayvalues using pointer/offset notation.

e)Refer to the fifth element ofvalues using pointer subscript notation.

f)Assume that unsigned integers are stored intwo bytes and that the starting address of the array is at location1002500 in memory.

·IfvPtr points to the first element of arrayvalues,then what address is referenced by vPtr + 3? (manually calculate)

·What value is stored at that location?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write two separate statements that assign the starting
Reference No:- TGS01400968

Expected delivery within 24 Hours