0
What is the output of the following C++ program?
#include <iostream>
using namespace std;
int main() {
int x = 10;
int &r = x;
r++;
cout << x << " " << r;
}- A10 11
- B11 10
- C11 11
- D10 10
Correct answer: C
What is the output of the following C++ program?
#include <iostream>
using namespace std;
int main() {
int x = 10;
int &r = x;
r++;
cout << x << " " << r;
}