Saved Bookmarks
| 1. |
What Is The Issue In The Following Program? |
|
Answer» #include <iostream> int MAIN(int argc, char **argv) { const int & r1 = 100; int v = 200; int &r2 = v; int & r3 = 200; return 0; } Issue is in the initialization of r3 at line 8, rvalue should be a variable. #include <iostream> int main(int argc, char **argv) { const int & r1 = 100; int v = 200; int &r2 = v; int & r3 = 200; return 0; } Issue is in the initialization of r3 at line 8, rvalue should be a variable. |
|