#include <iostream>
struct A{ char a[2]{'3', '4'}; };
auto main() -> int{
const auto& [b] = A{};
std::cout << 1[b] << std::endl;
}
上述代码的输出是4,这里涉及了哪些语法?
#include <iostream>
struct A{ char a[2]{'3', '4'}; };
auto main() -> int{
const auto& [b] = A{};
std::cout << 1[b] << std::endl;
}
上述代码的输出是4,这里涉及了哪些语法?