MCQOPTIONS
Saved Bookmarks
| 1. |
Follow the code snippet and chose the correct statement(s) Int m; void f2() { int m=1; // line1 ::m=2; // line2 m=2; //line3 } |
| A. | The statement inline 1 throws a compilation error |
| B. | Inline 2, m=2 is assigned to the global m |
| C. | Inline 3, m=2 is assigned to the global m and line2 throws compilation error |
| D. | Both (a) and (b) |
| Answer» C. Inline 3, m=2 is assigned to the global m and line2 throws compilation error | |