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
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
English,
2 months ago
Math,
2 months ago
English,
2 months ago
Social Sciences,
10 months ago
Math,
10 months ago