Hi ! Studying late night...
02:21 am

Sponsor Area

Sponsor Area

Question is

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((*Point)%10==0)
			*Point /= 2;
		else
			*Point -= 2;
		if((*Point)%5==0)
			*Point /= 5;
		Point++;
	}

	for(int L = 5; L>=0; L--){
		cout<<Score[L]<<'*';
	}
}

Mock Test Series

Sponsor Area

Sponsor Area

NCERT Book Store

NCERT Sample Papers

Entrance Exams Preparation