banner
cells

cells

为美好的世界献上 code

Q197

Q197#

#include <iostream>

int j = 1;

int main() {
    int &i = j, j;
    j = 2;
    std::cout << i << j;
}

Answer#

click to see answer 12

Explain#

The meaning of int &i = j, j is to give an alias to the global ::j as i, and then declare a local variable int j.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.