MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of the following program? #include int g =20; void func(int &x, int y) { x=x-y ; y=x*10 ; cout<< x<<’,’<< y<< ‘\n’ } void main() { int g=7 ; func(g,::g); cout<< g<< ‘,’ << :: g ; } |
| A. | -13,-130 33,330 |
| B. | -13,-130 -13,20 |
| C. | -13,20 33,330 |
| D. | None of these |
| Answer» C. -13,20 33,330 | |