Ask your own question, for FREE!
Computer Science 19 Online
OpenStudy (anonymous):

Given an array iArray of int type, declared to contain 50 elements, and a variable dVar of double type which has been assigned a value. Write an expression that assigns the value stored in the variable dVar to the last element of the array iArray.

OpenStudy (anonymous):

I believe he's asking for java, not c++. Didn't I already answer this for you? double d = dVar; int i = (int)d; iArray [49] = i; Assuming, the array iArray and variable dVar have already been declared.

OpenStudy (anonymous):

the answer of petewe is correct

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!