Computer Science, asked by DsJs, 1 year ago

1. Find the output of the following:
(i) void Revert(int &Num, int Last=2)
{Last=(Last%2==0)? Last+1:Last-1;
for(int C=1; C<=Last; C++)
Num+=C; }
void main()
{ int A=20,B=4;
Revert(A,B);
cout<<A<<"&"<<B<<endl;
B--; Revert(A,B);
cout<<A<<"#"<<B<<endl;
Revert(B);
cout<<A<<"#"<<B<<endl; }

(ii) void convert (float&X,inty=2)
{X=X/Y;
Y=X+Y;
cout<<X<<"*"<<Y<<endl; }
void main( )
{ float M= 15,N=5;
convert(M,N);
convert (N);
convert (M);
}​

Answers

Answered by HimangshuHazarika
0

Answer:

wrong cube such oral Ogden church pawnshop psychic window buffalo

Explanation:

dozen Blake simultaneouslyচতমভতদদমঢঢঢঢঢঢণ ম2

Similar questions