1.

Find and write the output of the following C++ program code: Note Assume all required header files are already being included in the program.Void main (){int *Point. Score []={100, 95, 150, 75, 65, 120} ;Point = Score :for (int L = 0 : L<6 ; L++){if ((*Po1nt) * 10==0) * Point /= 2;esle*Point  -= 2;if ((* Point) *5==0)*Point /= 5;Point++;}for (int L = 5; L>=0; L--)count<< Score [L]<<"*";}

Answer»

Given program will give error, i.e. Multiple declaration for ‘L’. 

If we remove int from 2nd for loop then output will be:

12*63*73*15*93*10*



Discussion

No Comment Found

Related InterviewSolutions