| ahmadali (1) | |
|
i need the output and the memory for this code plz 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 | |
|
|
|
| MiiNiPaa (232) | |
|
http://ideone.com/EDpjV3 Errors, errors everywhere. | |
|
|
|
| noisycoder (49) | |
|
Well it would be more clear if you could tell me exactly what error you are getting. also i don't understand for what do you need memory? | |
|
|
|
| noisycoder (49) | |||
try this: is it what you are trying to do?
| |||
|
|
|||