Computer Science, asked by swetaminj9, 6 months ago

2. Write the output of the following C++ program code-
#include<iostream.h>
void ab( int &a, int &b )
{ a = a + b ;
b = a - b;
a = a - b;
}
void main()
{ int x = 10, y = 20;
ab (x, y);
cout<< x <<":"<< y;
}
77be
Doc. What is a Derived class? How they are re​

Answers

Answered by anjumalik4128
0

Answer:

#define Big(A,B) (A>B)? A+1:B+2 void main() { char W[] = "Exam"; int L=strlen(W); for(int i=0; i<L-1; i++) W[i] = Big(W[i],W[i+1]); cout<<W<<endl; getch(); }

Similar questions