Good Evening
21:07 pm

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 included in the program.

#define Diff(N1,N2) ((N1>N2)?N1-N2:N2-N1)
void main()
{
	int A,B,NUM[] = {10,23,14,54,32};
	for(int CNT =4; CNT>0; CNT--)
	{
		A=NUM[CNT];
		B=NUM[CNT-1];
		cout<<Diff(A,B)<<'#';
	}
}

Mock Test Series

Sponsor Area

Sponsor Area

NCERT Book Store

NCERT Sample Papers

Entrance Exams Preparation