
December 1st, 2012, 06:05 AM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 2
Time spent in forums: 44 m 42 sec
Reputation Power: 0
|
|
General - Plz help "output & memory"
i need the output and memory for this code:
void f1(int a, int &b, char r)
{
int one;
one=a;
a++;
b*=2;
r='B';
cout<<a<<b<<r;
cout<<one<<endL;
}
void f2( int &x, int y , char &w )
{
x++;
y=y*2;
w='G';
cout<<x<<y<<w<<endL;
}
void main ()
{
int n1=1 , n2=3;
ch='A';
cout<<n1<<n2<<ch<<endL;
f1(n1,n2,ch);
cout<<n1<<n2<<ch<<endL;
f2(n2,25,ch);
cout<<n1<<n2<<ch<<endL;
}
thank you
|