1.

Observe the following C++ code and find out , which out of the given options (i) to (iv) are the expected correct output. Also assign the maximum and minimum value that can be assigned to the variable ‘Go’. void main(){ int X [4] ={100,75,10,125};int Go = random(2)+2;for (int i = Go; i< 4; i++)cout<<X[i]<<”$$”;}i. 100$$75 ii. 75$$10$$125$$ iii. 75$$10$$ iv.10$$125$

Answer»

(iv) is the correct option.

Minimum value of Go = 2

Maximum value of Go = 3



Discussion

No Comment Found

Related InterviewSolutions