What is the output of the following program? #include<iostream.h> void fun(int &a,int &b) { a=a*b; b=b-a; a=a-b; } void main() { int a=6,b=30; fun(a,b); cout<<a<< , <<b; }
Reveal answer
Fill a bubble to check yourself
What is the output of the following program? #include<iostream.h> void fun(int &a,int &b) { a=a*b; b=b-a; a=a-b; } void main() { int a=6,b=30; fun(a,b); cout<<a<< , <<b; }